History

fix redefinition in kern/posix.c

Russ Cox committed 18 years ago

Commit f7c89561 parent f94cf321 file · +5 −1Browse files

Unified · Split

kern/posix.c+5−1
@@ -2,7 +2,12 @@ · 1 unmodified line
22 * Posix generic OS implementation for drawterm.
33 */
44
5+#include "u.h"
6+
7+#ifndef _XOPEN_SOURCE /* for Apple and OpenBSD; not sure if needed */
58 #define _XOPEN_SOURCE 500
9+#endif
10+
611 #include <pthread.h>
712 #include <time.h>
813 #include <sys/time.h>
@@ -11,7 +16,6 @@ · 2 unmodified lines
1116 #include <pwd.h>
1217 #include <errno.h>
1318
14−#include "u.h"
1519 #include "lib.h"
1620 #include "dat.h"
1721 #include "fns.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t