summaryrefslogtreecommitdiffstats
path: root/test-getsubopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-getsubopt.c')
-rw-r--r--test-getsubopt.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/test-getsubopt.c b/test-getsubopt.c
index 73347343..483a3839 100644
--- a/test-getsubopt.c
+++ b/test-getsubopt.c
@@ -15,12 +15,15 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#if defined(__linux__) || defined(__MINT__)
-#define _GNU_SOURCE /* getsubopt() */
-#endif
-
#include <stdlib.h>
+/*
+ * NetBSD declares this function in the wrong header.
+ * No harm is done by allowing that, too:
+ * The only file using it, main.c, also includes unistd.h, anyway.
+ */
+#include <unistd.h>
+
int
main(void)
{