From: Lionel Sambuc Date: Mon, 25 Feb 2013 10:48:38 +0000 (+0100) Subject: Compatibility check for autotools X-Git-Tag: v3.3.0~1124 X-Git-Url: http://zhaoyanbai.com/repos/rndc.html?a=commitdiff_plain;h=c1bfecc1857ccc309849e0bc5fee7f8f5c65d367;p=minix.git Compatibility check for autotools This add an explicit test on the obsolete _MINIX define, unset it and replace it with _NETBSD_SOURCE. This should help compile a lot of packages relying on autotools in pkgsrc. Change-Id: Ie7da4ed5172f1b9f1f89e7a5d788ec2aed4d2563 --- diff --git a/sys/sys/featuretest.h b/sys/sys/featuretest.h index 967f09bcf..67354d216 100644 --- a/sys/sys/featuretest.h +++ b/sys/sys/featuretest.h @@ -69,6 +69,12 @@ #define _NETBSD_SOURCE 1 #endif +/* Compatibility for older version of autotools. */ +#if defined(_MINIX) +#undef _MINIX +#define _NETBSD_SOURCE 1 +#endif + /* Never define _REENTRANT on Minix */ #ifndef __minix