ports/java/jdk15/files/patch-j2se::common::gdefs_md.h
Greg Lewis b729cc5280 . Fix the build on FreeBSD 4.x by using <inttypes.h> rather than <stdint.h>
(which FreeBSD 4.x lacks).

Approved by:	phantom (maintainer)
2005-04-07 20:47:03 +00:00

14 lines
389 B
C

$FreeBSD$
--- ../../j2se/src/solaris/native/common/gdefs_md.h.orig Sun Mar 20 22:14:34 2005
+++ ../../j2se/src/solaris/native/common/gdefs_md.h Sun Mar 20 22:15:13 2005
@@ -19,5 +19,9 @@
#include <malloc.h>
#endif /* __linux__ */
#ifdef _ALLBSD_SOURCE
+#if defined(__FreeBSD__) && __FreeBSD__ < 5
+#include <inttypes.h>
+#else
#include <stdint.h>
+#endif
#endif /* _ALLBSD_SOURCE */