summaryrefslogtreecommitdiff
path: root/stream.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2000-09-01 21:03:06 +0000
committerWichert Akkerman <wichert@deephackmode.org>2000-09-01 21:03:06 +0000
commitbf79f2e16b090ffe59cd1e1820935680a2da7b78 (patch)
tree7cca3bc2da9b0505a7f7bd2e3f68fd569389e94d /stream.c
parentd077c451cd94c49ca508e1082a85cd042c0e7398 (diff)
downloadstrace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.gz
strace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.bz2
strace-bf79f2e16b090ffe59cd1e1820935680a2da7b78.tar.xz
Add FreeBSD support
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/stream.c b/stream.c
index 0cc14a0..4abf861 100644
--- a/stream.c
+++ b/stream.c
@@ -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 */