unnecessary sys/stdin.h include jar main.cpp

Michael Franz mvfranz at gmail.com
Fri Aug 14 21:24:01 PDT 2009


Hi,

I am trying to compile the OpenJDK BSD tree on linux and found that the BSD
changes to include stdint.h for ALLBSD_SOURCE in
jdk/src/share/native/com/sun/java/util/jar/pack/main.cpp has an else that is
unnecessary.  Checking the linux version the following patch will clean up
the includes.

--- /jdk/src/share/native/com/sun/java/util/jar/pack/main.cpp.orig
2009-08-15 00:03:01.654179053 -0400
+++ jdk/src/share/native/com/sun/java/util/jar/pack/main.cpp    2009-08-15
00:16:17.712553563 -0400
@@ -24,8 +24,6 @@
  */
 #ifdef _ALLBSD_SOURCE
 #include <stdint.h>
-#else
-#include <sys/stdint.h>
 #endif
 #include <sys/types.h>

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090815/9ccb4b13/attachment.html 


More information about the bsd-port-dev mailing list