mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
. 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:
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
14
java/jdk15/files/patch-j2se::common::gdefs_md.h
Normal file
14
java/jdk15/files/patch-j2se::common::gdefs_md.h
Normal 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 */
|
16
java/jdk15/files/patch-j2se::java2d::j2d_md.h
Normal file
16
java/jdk15/files/patch-j2se::java2d::j2d_md.h
Normal 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;
|
16
java/jdk15/files/patch-j2se::medialib::mlib_types.h
Normal file
16
java/jdk15/files/patch-j2se::medialib::mlib_types.h
Normal 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 */
|
14
java/jdk16/files/patch-j2se::common::gdefs_md.h
Normal file
14
java/jdk16/files/patch-j2se::common::gdefs_md.h
Normal 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 */
|
16
java/jdk16/files/patch-j2se::java2d::j2d_md.h
Normal file
16
java/jdk16/files/patch-j2se::java2d::j2d_md.h
Normal 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;
|
16
java/jdk16/files/patch-j2se::medialib::mlib_types.h
Normal file
16
java/jdk16/files/patch-j2se::medialib::mlib_types.h
Normal 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 */
|
Loading…
Add table
Reference in a new issue