pkgsrc/sysutils/strace/patches/patch-at
christos d2290df0c1 - make this work again on NetBSD/i386
- make this compile on NetBSD/x86_64 [does not work yet]
- completely automate the NetBSD header generation. This should make porting
  to other platforms easier.
2007-04-27 19:45:01 +00:00

31 lines
827 B
Text

$NetBSD: patch-at,v 1.1 2007/04/27 19:45:02 christos Exp $
--- stream.c.orig 2005-06-01 15:22:07.000000000 -0400
+++ stream.c 2007-04-27 11:31:51.000000000 -0400
@@ -50,7 +50,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
@@ -370,7 +370,7 @@
}
#endif
-#if !defined(LINUX) && !defined(FREEBSD)
+#if !defined(LINUX) && !defined(ALLBSD)
static const struct xlat stream_flush_options[] = {
{ FLUSHR, "FLUSHR" },
@@ -1298,6 +1298,6 @@
}
}
-#endif /* !LINUX && !FREEBSD */
+#endif /* !LINUX && !ALLBSD */
-#endif /* HAVE_SYS_STREAM_H || LINUX || FREEBSD */
+#endif /* HAVE_SYS_STREAM_H || LINUX || FREEBSD || NETBSD */