=================================================================== RCS file: /cvs/mandoc/test-getsubopt.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- mandoc/test-getsubopt.c 2015/10/06 18:32:20 1.4 +++ mandoc/test-getsubopt.c 2018/08/15 02:15:52 1.5 @@ -1,4 +1,4 @@ -/* $Id: test-getsubopt.c,v 1.4 2015/10/06 18:32:20 schwarze Exp $ */ +/* $Id: test-getsubopt.c,v 1.5 2018/08/15 02:15:52 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -15,11 +15,14 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#if defined(__linux__) || defined(__MINT__) -#define _GNU_SOURCE /* getsubopt() */ -#endif - #include + +/* + * 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 int main(void)