ports/java/jdk15/files/patch-j2se::jar::main.cpp
Jung-uk Kim 7446ea7a70 Various fixes for -CURRENT.
- Build fixes after GCC 4.2 import.
- Remove SIGRTMIN and SIGRTMAX redefinitions.
- Use posix_memalign(3) instead of valloc(3).

Approved by:	glewis (maintainer)
2007-05-25 18:44:27 +00:00

14 lines
438 B
C++

--- ../../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"