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:
parent
f640210005
commit
c1bfecc185
1 changed files with 6 additions and 0 deletions
|
@ -69,6 +69,12 @@
|
||||||
#define _NETBSD_SOURCE 1
|
#define _NETBSD_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Compatibility for older version of autotools. */
|
||||||
|
#if defined(_MINIX)
|
||||||
|
#undef _MINIX
|
||||||
|
#define _NETBSD_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Never define _REENTRANT on Minix */
|
/* Never define _REENTRANT on Minix */
|
||||||
|
|
||||||
#ifndef __minix
|
#ifndef __minix
|
||||||
|
|
Loading…
Reference in a new issue