diff options
author | rsc <devnull@localhost> | 2003-11-23 20:04:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-11-23 20:04:53 +0000 |
commit | 478ee9636fcfe3509d0a901d1250524a5c41d3a8 (patch) | |
tree | 539eccccbee0a00b306c45583212e4ebb25d7ab6 /src/lib9 | |
parent | 1c253ceb586c4519f42ce115954c4efab787f81a (diff) | |
download | plan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.tar.gz plan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.tar.bz2 plan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.zip |
Make things build on FreeBSD again.
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/_p9dialparse.c | 8 | ||||
-rw-r--r-- | src/lib9/_p9dir.c | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/lib9/_p9dialparse.c b/src/lib9/_p9dialparse.c index 44594dc0..45027513 100644 --- a/src/lib9/_p9dialparse.c +++ b/src/lib9/_p9dialparse.c @@ -1,9 +1,11 @@ -#include <netdb.h> -#include <sys/un.h> - #include <u.h> +#define NOPLAN9DEFINES #include <libc.h> +#include <sys/types.h> +#include <netdb.h> +#include <sys/un.h> + static char *nets[] = { "tcp", "udp", nil }; #define CLASS(p) ((*(uchar*)(p))>>6) 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) { |