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
This commit is contained in:
Lionel Sambuc 2013-02-25 11:48:38 +01:00
parent f640210005
commit c1bfecc185

View file

@ -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