aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/_p9dir.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-23 20:04:53 +0000
committerrsc <devnull@localhost>2003-11-23 20:04:53 +0000
commit478ee9636fcfe3509d0a901d1250524a5c41d3a8 (patch)
tree539eccccbee0a00b306c45583212e4ebb25d7ab6 /src/lib9/_p9dir.c
parent1c253ceb586c4519f42ce115954c4efab787f81a (diff)
downloadplan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.tar.gz
plan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.tar.bz2
plan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.zip
Make things build on FreeBSD again.
Diffstat (limited to 'src/lib9/_p9dir.c')
-rw-r--r--src/lib9/_p9dir.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c
index 0903c57d..d94208cc 100644
--- a/src/lib9/_p9dir.c
+++ b/src/lib9/_p9dir.c
@@ -1,3 +1,8 @@
+#include <u.h>
+#define NOPLAN9DEFINES
+#include <libc.h>
+
+#include <sys/types.h>
#include <sys/stat.h>
#ifdef _HAVEDISKLABEL
#include <sys/disklabel.h>
@@ -6,10 +11,6 @@
#include <pwd.h>
#include <grp.h>
-#include <u.h>
-#define NOPLAN9DEFINES
-#include <libc.h>
-
int
_p9dir(struct stat *st, char *name, Dir *d, char **str, char *estr)
{