]> The Tcpdump Group git mirrors - libpcap/commitdiff
Check for HP's C compiler rather than for HP-UX.
authorGuy Harris <[email protected]>
Sat, 21 Sep 2024 22:21:06 +0000 (15:21 -0700)
committerGuy Harris <[email protected]>
Sat, 21 Sep 2024 22:21:06 +0000 (15:21 -0700)
The test concerns the compiler, not the OS.

thread-local.h

index 9abf498c2e1e6bbd62ac983b6b4efb51ecb4491e..a84f4d2ca415ccaf8ff080623590e3e9e8cb0390 100644 (file)
@@ -63,7 +63,7 @@
   #elif defined __GNUC__ || \
          defined __SUNPRO_C || \
          defined __xlC__ || \
-         defined __hpux
+         defined __HP_cc
     #define thread_local __thread
   #else
     #error "Cannot define thread_local"