summaryrefslogtreecommitdiff
path: root/sysutils/9base/patches/patch-bc
blob: 1ce4d55e20f579389ea2e7c59e1c580c08c51d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-bc,v 1.3 2011/10/26 11:31:13 ryoon Exp $

--- lib9/u.h.orig	2010-06-04 10:46:05.000000000 +0000
+++ lib9/u.h
@@ -17,7 +17,7 @@ extern "C" {
 #define _BSD_SOURCE 1
 #define _NETBSD_SOURCE 1	/* NetBSD */
 #define _SVID_SOURCE 1
-#if !defined(__APPLE__) && !defined(__OpenBSD__)
+#if !defined(__APPLE__) && !defined(__OpenBSD__) || !defined(__NetBSD__)
 #	define _XOPEN_SOURCE 1000
 #	define _XOPEN_SOURCE_EXTENDED 1
 #endif