diff options
author | Wichert Akkerman <wichert@deephackmode.org> | 2000-09-01 21:03:06 +0000 |
---|---|---|
committer | Wichert Akkerman <wichert@deephackmode.org> | 2000-09-01 21:03:06 +0000 |
commit | bf79f2e16b090ffe59cd1e1820935680a2da7b78 (patch) | |
tree | 7cca3bc2da9b0505a7f7bd2e3f68fd569389e94d /stream.c | |
parent | d077c451cd94c49ca508e1082a85cd042c0e7398 (diff) | |
download | strace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.gz strace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.bz2 strace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.xz |
Add FreeBSD support
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -30,7 +30,7 @@ #include "defs.h" -#if defined(HAVE_SYS_STREAM_H) || defined(linux) +#if defined(HAVE_SYS_STREAM_H) || defined(linux) || defined(FREEBSD) #if defined(linux) #ifdef HAVE_SYS_POLL_H @@ -48,11 +48,15 @@ struct strbuf { #else /* linux */ +#ifndef FREEBSD #include <stropts.h> #include <poll.h> #include <sys/conf.h> #include <sys/stream.h> #include <sys/tihdr.h> +#else /* FREEBSD */ +#include <poll.h> +#endif /* FREEBSD */ #endif /* linux */ @@ -62,6 +66,7 @@ struct strbuf { #include <sys/timod.h> #endif /* HAVE_SYS_TIUSER_H */ +#ifndef FREEBSD static struct xlat msgflags[] = { { RS_HIPRI, "RS_HIPRI" }, { 0, NULL }, @@ -252,6 +257,7 @@ struct tcb *tcp; } #endif /* HAVE_PUTPMSG */ +#endif /* !FREEBSD */ #ifdef HAVE_SYS_POLL_H @@ -349,7 +355,7 @@ struct tcb *tcp; } #endif -#ifndef linux +#if !defined(linux) && !defined(FREEBSD) static struct xlat stream_flush_options[] = { { FLUSHR, "FLUSHR" }, @@ -824,7 +830,7 @@ int code, arg; } } -#endif /* linux */ +#endif /* !linux && !FREEBSD */ -#endif /* LINUXSPARC && linux */ +#endif /* HAVE_SYS_STREAM_H || linux || FREEBSD */ |