summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/unistd.h7
-rw-r--r--lib/libpthread/include/pthread.h3
2 files changed, 7 insertions, 3 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 6751bbb9b27..a28fb72d146 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.61 2008/04/29 14:52:54 kurt Exp $ */
+/* $OpenBSD: unistd.h,v 1.62 2008/06/25 14:58:54 millert Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -50,6 +50,11 @@
#define F_TEST 3 /* test a section for locks by other procs */
#endif
+#if __POSIX_VISIBLE
+#define _POSIX_REENTRANT_FUNCTIONS 1
+#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
+#endif
+
#ifndef NULL
#ifdef __GNUG__
#define NULL __null
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h
index 3dd31028b9d..ca837eb11f1 100644
--- a/lib/libpthread/include/pthread.h
+++ b/lib/libpthread/include/pthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread.h,v 1.27 2007/03/15 12:42:39 kurt Exp $ */
+/* $OpenBSD: pthread.h,v 1.28 2008/06/25 14:58:54 millert Exp $ */
/*
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
@@ -73,7 +73,6 @@
#define _POSIX_THREAD_PRIO_INHERIT 1
#define _POSIX_THREAD_PRIO_PROTECT 1
/* #define _POSIX_THREAD_PROCESS_SHARED */
-#define _POSIX_THREAD_SAFE_FUNCTIONS 1
/*
* Flags for threads and thread attributes.