pkgsrc/sysutils/strace/patches/patch-at
2017-06-27 15:26:05 +00:00

42 lines
1,020 B
Text

$NetBSD: patch-at,v 1.2 2017/06/27 15:26:05 christos Exp $
--- stream.c.orig 2006-12-13 14:57:23.000000000 -0500
+++ stream.c 2017-06-27 11:19:20.333389627 -0400
@@ -41,8 +41,10 @@
#include <stropts.h>
#endif
#ifdef HAVE_SYS_CONF_H
+#if !defined(NETBSD)
#include <sys/conf.h>
#endif
+#endif
#ifdef HAVE_SYS_STREAM_H
#include <sys/stream.h>
#endif
@@ -50,7 +52,7 @@
#include <sys/tihdr.h>
#endif
-#if defined(HAVE_SYS_STREAM_H) || defined(LINUX) || defined(FREEBSD)
+#if defined(HAVE_SYS_STREAM_H) || defined(LINUX) || defined(FREEBSD) || defined(NETBSD)
#ifndef HAVE_STROPTS_H
#define RS_HIPRI 1
@@ -397,7 +399,7 @@
}
#endif
-#if !defined(LINUX) && !defined(FREEBSD)
+#if !defined(LINUX) && !defined(ALLBSD)
static const struct xlat stream_flush_options[] = {
{ FLUSHR, "FLUSHR" },
@@ -1325,6 +1327,6 @@
}
}
-#endif /* !LINUX && !FREEBSD */
+#endif /* !LINUX && !ALLBSD */
-#endif /* HAVE_SYS_STREAM_H || LINUX || FREEBSD */
+#endif /* HAVE_SYS_STREAM_H || LINUX || FREEBSD || NETBSD */