aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
authorRuss Cox <russcox@gmail.com>2009-09-11 13:51:50 -0400
committerRuss Cox <russcox@gmail.com>2009-09-11 13:51:50 -0400
commitfa662c9571e92d5fc4f36414723bbaed1e11b278 (patch)
treefa5953ca28ab8687e1186b4183d480a98feed2bc /src/libthread
parenta673ea22035ad986afc84d44543cd232218ddbe9 (diff)
downloadplan9port-fa662c9571e92d5fc4f36414723bbaed1e11b278.tar.gz
plan9port-fa662c9571e92d5fc4f36414723bbaed1e11b278.tar.bz2
plan9port-fa662c9571e92d5fc4f36414723bbaed1e11b278.zip
INSTALL: fix build on Snow Leopard
http://codereview.appspot.com/116073
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/threadimpl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index da98e5eb..8b00694e 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -6,6 +6,9 @@
#include <sched.h>
#include <signal.h>
#if !defined(__OpenBSD__)
+# if defined(__APPLE__)
+# define _XOPEN_SOURCE /* for Snow Leopard */
+# endif
# include <ucontext.h>
#endif
#include <sys/utsname.h>