summaryrefslogtreecommitdiff
path: root/src/port/sys_internal.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-02 13:07:33 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-02 13:07:33 +0100
commitda88c852dc91de8c8cfbe511844941cdaac2a577 (patch)
tree62ec6170697e75abc3f14e410383be32345afd68 /src/port/sys_internal.h
parente166237789f516eb8b231b132d30aebd2a6c9761 (diff)
downloadwolfbones-da88c852dc91de8c8cfbe511844941cdaac2a577.tar.gz
wolfbones-da88c852dc91de8c8cfbe511844941cdaac2a577.tar.bz2
cleanup in unistd.h and lockf
Diffstat (limited to 'src/port/sys_internal.h')
-rw-r--r--src/port/sys_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/port/sys_internal.h b/src/port/sys_internal.h
index 8317faa..659b1c7 100644
--- a/src/port/sys_internal.h
+++ b/src/port/sys_internal.h
@@ -29,6 +29,7 @@
#if defined LINUX
#if OS_MAJOR_VERSION == 2
#if OS_MINOR_VERSION == 6
+#define HAVE_LOCK_F
#define HAVE_LOCALTIME_R
#define HAVE_PTHREADS
#else
@@ -42,6 +43,7 @@
#if defined FREEBSD
#if OS_MAJOR_VERSION == 7
#if OS_MINOR_VERSION == 0
+#define HAVE_LOCK_F
#define HAVE_LOCALTIME_R
#define HAVE_PTHREADS
#else
@@ -50,6 +52,9 @@
#else
#if OS_MAJOR_VERSION == 6
#if OS_MINOR_VERSION == 2
+#define HAVE_LOCK_F
+#define HAVE_LOCALTIME_R
+#define HAVE_PTHREADS
#else
#error unknown platform
#endif /* defined OS_MINOR_VERSION == 2 */
@@ -62,6 +67,7 @@
#if defined OPENBSD
#if OS_MAJOR_VERSION == 4
#if OS_MINOR_VERSION >= 2 && OS_MINOR_VERSION <= 3
+#define HAVE_LOCK_F
#define HAVE_LOCALTIME_R
#define HAVE_PTHREADS
#else
@@ -75,6 +81,7 @@
#if defined NETBSD
#if OS_MAJOR_VERSION == 4
#if OS_MINOR_VERSION == 0
+#define HAVE_LOCK_F
#define HAVE_LOCALTIME_R
#define HAVE_PTHREADS
#else
@@ -88,10 +95,12 @@
#if defined SUNOS
#if OS_MAJOR_VERSION == 5
#if OS_MINOR_VERSION == 8
+#define HAVE_LOCK_F
#define HAVE_LOCALTIME_R
#define HAVE_PTHREADS
#else
#if OS_MINOR_VERSION == 10
+#define HAVE_LOCK_F
#define HAVE_LOCALTIME_R
#define HAVE_PTHREADS
#else