diff --git a/config.h.in b/config.h.in index 0b56f4f0e..ffab98c1d 100644 --- a/config.h.in +++ b/config.h.in @@ -572,6 +572,9 @@ /* Define to 1 if on MINIX. */ #undef _MINIX +/* Enable for compile on Minix */ +#undef _NETBSD_SOURCE + /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE diff --git a/configure b/configure index fac5a1517..71de3cebc 100755 --- a/configure +++ b/configure @@ -4156,6 +4156,11 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } +if test "$ac_cv_header_minix_config_h" = "yes"; then + +$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h + +fi case "$prefix" in NONE)