diff options
author | rsc <devnull@localhost> | 2005-07-21 18:29:04 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-21 18:29:04 +0000 |
commit | fe8c925e8ad3fe1fb95b89d26dcb828c6b31f548 (patch) | |
tree | 02a152fbf48aa957f3bfb69148a90e7811320afa /src/lib9 | |
parent | 6a73f8b6c12c1618fdf02c70236155b68086f8b2 (diff) | |
download | plan9port-fe8c925e8ad3fe1fb95b89d26dcb828c6b31f548.tar.gz plan9port-fe8c925e8ad3fe1fb95b89d26dcb828c6b31f548.tar.bz2 plan9port-fe8c925e8ad3fe1fb95b89d26dcb828c6b31f548.zip |
OpenBSD, thanks to Tim Wiess
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/_p9dir.c | 3 | ||||
-rw-r--r-- | src/lib9/dirfwstat.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c index ce2dcecd..e5e9c975 100644 --- a/src/lib9/_p9dir.c +++ b/src/lib9/_p9dir.c @@ -7,8 +7,9 @@ #include <pwd.h> #include <grp.h> -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) #include <sys/disklabel.h> +#include <sys/ioctl.h> static int diskdev[] = { 151, /* aacd */ 116, /* ad */ diff --git a/src/lib9/dirfwstat.c b/src/lib9/dirfwstat.c index 76ed9cd9..be77f4b0 100644 --- a/src/lib9/dirfwstat.c +++ b/src/lib9/dirfwstat.c @@ -4,7 +4,7 @@ #include <sys/time.h> #include <sys/stat.h> -#if defined(__FreeBSD__) || defined(__APPLE__) +#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) /* do nothing -- futimes exists and is fine */ #elif defined(__SunOS5_9__) |