ref: f7c895607e99fac2f72ae283a7f6e1e52c142a69
parent: f94cf325190d273eedc8d5ff8b645f3ecda07efd
author: Russ Cox <[email protected]>
date: Mon Nov 26 10:11:24 EST 2007
fix redefinition in kern/posix.c
--- a/kern/posix.c
+++ b/kern/posix.c
@@ -2,7 +2,12 @@
* Posix generic OS implementation for drawterm.
*/
+#include "u.h"
+
+#ifndef _XOPEN_SOURCE /* for Apple and OpenBSD; not sure if needed */
#define _XOPEN_SOURCE 500
+#endif
+
#include <pthread.h>
#include <time.h>
#include <sys/time.h>
@@ -11,7 +16,6 @@
#include <pwd.h>
#include <errno.h>
-#include "u.h"
#include "lib.h"
#include "dat.h"
#include "fns.h"