summaryrefslogtreecommitdiff
path: root/sysutils/strace/patches/patch-at
blob: be59896673417ebe6ced018c5c06a1ecc0f9c21f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$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 */