From 930ea4b87f78e69951108f2426beaead3a7d0a84 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 29 Oct 2002 08:57:28 +0000 Subject: [PATCH] Deuce's mod: OpenBSD support. --- src/xpdev/conwrap.c | 3 +-- src/xpdev/dirwrap.c | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/xpdev/conwrap.c b/src/xpdev/conwrap.c index c7328808a9..d377e03be8 100644 --- a/src/xpdev/conwrap.c +++ b/src/xpdev/conwrap.c @@ -42,10 +42,9 @@ #include <unistd.h> #include <termios.h> -/* Do the correct thing under BSD */ #if defined(__FreeBSD__) #include <sys/kbio.h> -#else /* Linux and others */ +#elif defined(__linux__) #include <sys/kd.h> #endif diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c index c3846d4d4d..3cfcb40d97 100644 --- a/src/xpdev/dirwrap.c +++ b/src/xpdev/dirwrap.c @@ -47,12 +47,14 @@ #include <unistd.h> /* usleep */ #include <fcntl.h> /* O_NOCCTY */ #include <ctype.h> /* toupper */ + #include <sys/param.h> - #if defined(__FreeBSD__) - #include <sys/param.h> + #if defined(BSD) #include <sys/mount.h> + #if defined(__FreeBSD__) #include <sys/kbio.h> #endif + #endif #include <sys/ioctl.h> /* ioctl */ @@ -633,7 +635,7 @@ ulong DLLCALL getfreediskspace(const char* path) /* statfs is also used under FreeBSD */ -#elif defined(__GLIBC__) || defined(__FreeBSD__) +#elif defined(__GLIBC__) || defined(BSD) struct statfs fs; -- GitLab