From 72b08051834f48e51407e7cebe8719cc5b6555a3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 15 Aug 2018 02:15:52 +0000 Subject: Autodetect whether _GNU_SOURCE or _OPENBSD_SOURCE are needed; the latter is a NetBSD idiosyncrasy reported by wiz@. Also take into account that NetBSD declares getsubopt(3) in the wrong header. --- test-vasprintf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test-vasprintf.c') diff --git a/test-vasprintf.c b/test-vasprintf.c index ee6980a2..1e762697 100644 --- a/test-vasprintf.c +++ b/test-vasprintf.c @@ -1,4 +1,4 @@ -/* $Id: test-vasprintf.c,v 1.4 2016/07/18 18:35:05 schwarze Exp $ */ +/* $Id: test-vasprintf.c,v 1.5 2018/08/15 02:15:52 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze * @@ -15,10 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#if defined(__linux__) || defined(__MINT__) -#define _GNU_SOURCE /* vasprintf() */ -#endif - #include #include #include -- cgit v1.2.3