$NetBSD: patch-builtin.c,v 1.2 2018/11/03 12:47:16 leot Exp $ Defining _GNU_SOURCE, _BSD_SOURCE etc. in C sources is problematic, because the result of the configure command may be inconsistent with it. to be consistent, such macros have to be defined in the early stage of the configure command, and the AC_USE_SYSTEM_EXTENSIONS macro does the job. Part of pull request 1458, commit id `df9a0963f8fa6fca773b059dce22c598152f3edb': Also shared via PR pkg/52460. --- src/builtin.c.orig 2018-11-02 01:49:29.000000000 +0000 +++ src/builtin.c @@ -1,12 +1,3 @@ -#define _BSD_SOURCE -#define _GNU_SOURCE -#ifndef __sun__ -# define _XOPEN_SOURCE -# define _XOPEN_SOURCE_EXTENDED 1 -#else -# define _XPG6 -# define __EXTENSIONS__ -#endif #include #include #include