From c1bfecc1857ccc309849e0bc5fee7f8f5c65d367 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Mon, 25 Feb 2013 11:48:38 +0100 Subject: [PATCH] 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 --- sys/sys/featuretest.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.44.0