aboutsummaryrefslogtreecommitdiff
path: root/java/jdk16/files/patch-j2se::jar::main.cpp
blob: 99b0ae464f9e5b7ff90a436004f42200abf27425 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ../../j2se/src/share/native/com/sun/java/util/jar/pack/main.cpp.orig	Tue Oct 19 14:59:48 2004
+++ ../../j2se/src/share/native/com/sun/java/util/jar/pack/main.cpp	Thu May 24 18:46:10 2007
@@ -17,7 +17,11 @@
 
 #if defined(unix) && !defined(PRODUCT)
 #include "pthread.h"
+#if defined(_ALLBSD_SOURCE)
+#define THREAD_SELF ((jlong)pthread_self())
+#else
 #define THREAD_SELF ((int)pthread_self())
+#endif
 #endif
 
 #include "defines.h"