summaryrefslogtreecommitdiff
path: root/stream.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2001-04-10 10:32:26 +0000
committerWichert Akkerman <wichert@deephackmode.org>2001-04-10 10:32:26 +0000
commit42080d852e2dc0ef3eb507ef561e91cc97cff515 (patch)
tree9991a5ec48a2652ba771a12014f4cf2044bd7ae4 /stream.c
parent4ca3109a03ad7d853050eb5668db3df92a6749aa (diff)
downloadstrace-42080d852e2dc0ef3eb507ef561e91cc97cff515.tar.gz
strace-42080d852e2dc0ef3eb507ef561e91cc97cff515.tar.bz2
strace-42080d852e2dc0ef3eb507ef561e91cc97cff515.tar.xz
add more configure tests for system headers
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/stream.c b/stream.c
index 1c26672..872ba59 100644
--- a/stream.c
+++ b/stream.c
@@ -30,13 +30,28 @@
#include "defs.h"
-#if defined(HAVE_SYS_STREAM_H) || defined(linux) || defined(FREEBSD)
-
-#if defined(linux)
+#ifdef HAVE_POLL_H
+#include <poll.h>
+#endif
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
+#ifdef HAVE_STROPTS_H
+#include <stropts.h>
+#endif
+#ifdef HAVE_SYS_CONF_H
+#include <sys/conf.h>
+#endif
+#ifdef HAVE_SYS_STREAM_H
+#include <sys/stream.h>
+#endif
+#ifdef HAVE_SYS_TIHDR_H
+#include <sys/tihdr.h>
+#endif
+#if defined(HAVE_SYS_STREAM_H) || defined(linux) || defined(FREEBSD)
+
+#ifndef HAVE_STROPTS_H
#define RS_HIPRI 1
struct strbuf {
int maxlen; /* no. of bytes in buffer */
@@ -45,20 +60,7 @@ struct strbuf {
};
#define MORECTL 1
#define MOREDATA 2
-
-#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 */
+#endif /* !HAVE_STROPTS_H */
#ifdef HAVE_SYS_TIUSER_H
#include <sys/tiuser.h>