changeset 1774:466b3f1889b0

. Add BSD support.
author glewis@misty.eyesbeyond.com
date Sun, 18 Oct 2009 09:46:32 -0700
parents ca3d6a38db07
children e8bba2ae9acc
files src/share/native/sun/security/ec/impl/ecc_impl.h src/share/native/sun/security/ec/impl/ecdecode.c src/share/native/sun/security/ec/impl/oid.c src/share/native/sun/security/ec/impl/secitem.c
diffstat 4 files changed, 14 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/security/ec/impl/ecc_impl.h	Mon Oct 05 22:36:41 2009 -0700
+++ b/src/share/native/sun/security/ec/impl/ecc_impl.h	Sun Oct 18 09:46:32 2009 -0700
@@ -78,6 +78,14 @@
 typedef enum { B_FALSE, B_TRUE } boolean_t;
 #endif /* __linux__ */
 
+#ifdef _ALLBSD_SOURCE
+#include <stdint.h>
+#define B_FALSE FALSE
+#define B_TRUE TRUE
+typedef unsigned long ulong_t;
+typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
+#endif /* _ALLBSD_SOURCE */
+
 #ifdef _WIN32
 typedef unsigned char uint8_t;
 typedef unsigned long ulong_t;
--- a/src/share/native/sun/security/ec/impl/ecdecode.c	Mon Oct 05 22:36:41 2009 -0700
+++ b/src/share/native/sun/security/ec/impl/ecdecode.c	Sun Oct 18 09:46:32 2009 -0700
@@ -60,9 +60,9 @@
 #include <sys/types.h>
 
 #ifndef _WIN32
-#ifndef __linux__
+#if !defined(__linux__) && !defined(_ALLBSD_SOURCE)
 #include <sys/systm.h>
-#endif /* __linux__ */
+#endif /* __linux__ || _ALLBSD_SOURCE */
 #include <sys/param.h>
 #endif /* _WIN32 */
 
--- a/src/share/native/sun/security/ec/impl/oid.c	Mon Oct 05 22:36:41 2009 -0700
+++ b/src/share/native/sun/security/ec/impl/oid.c	Sun Oct 18 09:46:32 2009 -0700
@@ -59,9 +59,9 @@
 #include <sys/types.h>
 
 #ifndef _WIN32
-#ifndef __linux__
+#if !defined(__linux__) && !defined(_ALLBSD_SOURCE)
 #include <sys/systm.h>
-#endif /* __linux__ */
+#endif /* __linux__ || _ALLBSD_SOURCE */
 #include <sys/param.h>
 #endif /* _WIN32 */
 
--- a/src/share/native/sun/security/ec/impl/secitem.c	Mon Oct 05 22:36:41 2009 -0700
+++ b/src/share/native/sun/security/ec/impl/secitem.c	Sun Oct 18 09:46:32 2009 -0700
@@ -64,9 +64,9 @@
 #include <sys/types.h>
 
 #ifndef _WIN32
-#ifndef __linux__
+#if !defined(__linux__) && !defined(_ALLBSD_SOURCE)
 #include <sys/systm.h>
-#endif /* __linux__ */
+#endif /* __linux__ || _ALLBSD_SOURCE */
 #include <sys/param.h>
 #endif /* _WIN32 */