. Fix the build on FreeBSD 4.x by using <inttypes.h> rather than <stdint.h>

(which FreeBSD 4.x lacks).

Approved by:	phantom (maintainer)
This commit is contained in:
Greg Lewis 2005-04-07 20:47:03 +00:00
parent b204003510
commit b729cc5280
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132721
6 changed files with 92 additions and 0 deletions

View file

@ -0,0 +1,14 @@
$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 */

View file

@ -0,0 +1,16 @@
$FreeBSD$
--- ../../j2se/src/solaris/native/sun/java2d/j2d_md.h.orig Sun Mar 20 22:20:43 2005
+++ ../../j2se/src/solaris/native/sun/java2d/j2d_md.h Sun Mar 20 22:24:40 2005
@@ -14,7 +14,11 @@
* NetBSD's doesn't either, so let's do it for everyone.
*/
#if defined(__linux__) || defined(_ALLBSD_SOURCE)
+#if defined(__FreeBSD__) && __FreeBSD__ < 5
+#include <inttypes.h>
+#else
#include <stdint.h>
+#endif
#endif /* __linux__ || _ALLBSD_SOURCE */
typedef unsigned char jubyte;

View file

@ -0,0 +1,16 @@
$FreeBSD$
--- ../../j2se/src/share/native/sun/awt/medialib/mlib_types.h.orig Sun Mar 20 22:08:20 2005
+++ ../../j2se/src/share/native/sun/awt/medialib/mlib_types.h Sun Mar 20 22:08:33 2005
@@ -47,7 +47,11 @@
#if defined(_ALLBSD_SOURCE)
#include <stddef.h> /* for ptrdiff_t */
+#if defined(__FreeBSD__) && __FreeBSD__ < 5
+#include <inttypes.h>
+#else
#include <stdint.h> /* for uintptr_t */
+#endif
#elif defined(__linux__)
#include <stdint.h> /* for uintptr_t */
#include <malloc.h> /* for ptrdiff_t */

View file

@ -0,0 +1,14 @@
$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 */

View file

@ -0,0 +1,16 @@
$FreeBSD$
--- ../../j2se/src/solaris/native/sun/java2d/j2d_md.h.orig Sun Mar 20 22:20:43 2005
+++ ../../j2se/src/solaris/native/sun/java2d/j2d_md.h Sun Mar 20 22:24:40 2005
@@ -14,7 +14,11 @@
* NetBSD's doesn't either, so let's do it for everyone.
*/
#if defined(__linux__) || defined(_ALLBSD_SOURCE)
+#if defined(__FreeBSD__) && __FreeBSD__ < 5
+#include <inttypes.h>
+#else
#include <stdint.h>
+#endif
#endif /* __linux__ || _ALLBSD_SOURCE */
typedef unsigned char jubyte;

View file

@ -0,0 +1,16 @@
$FreeBSD$
--- ../../j2se/src/share/native/sun/awt/medialib/mlib_types.h.orig Sun Mar 20 22:08:20 2005
+++ ../../j2se/src/share/native/sun/awt/medialib/mlib_types.h Sun Mar 20 22:08:33 2005
@@ -47,7 +47,11 @@
#if defined(_ALLBSD_SOURCE)
#include <stddef.h> /* for ptrdiff_t */
+#if defined(__FreeBSD__) && __FreeBSD__ < 5
+#include <inttypes.h>
+#else
#include <stdint.h> /* for uintptr_t */
+#endif
#elif defined(__linux__)
#include <stdint.h> /* for uintptr_t */
#include <malloc.h> /* for ptrdiff_t */