$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 #endif #ifdef HAVE_SYS_CONF_H +#if !defined(NETBSD) #include #endif +#endif #ifdef HAVE_SYS_STREAM_H #include #endif @@ -50,7 +52,7 @@ #include #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 */