summaryrefslogtreecommitdiffstats
path: root/test-vasprintf.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-15 02:15:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-15 02:15:52 +0000
commit48a10a64970575bdbe0d1c5342e0925b338be598 (patch)
tree05396a2b66e98040a95ee45656b95a0d483ed0f6 /test-vasprintf.c
parent9d71e0cbacf0681fd313f1e52974183828949490 (diff)
downloadmandoc-48a10a64970575bdbe0d1c5342e0925b338be598.tar.gz
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.
Diffstat (limited to 'test-vasprintf.c')
-rw-r--r--test-vasprintf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/test-vasprintf.c b/test-vasprintf.c
index 017a56df..b0ad67e8 100644
--- a/test-vasprintf.c
+++ b/test-vasprintf.c
@@ -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 <stdarg.h>
#include <stdio.h>
#include <string.h>