Patch AC_USE_SYSTEM_EXTENSIONS for Minix3

Nic Heath <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches
Message-ID <CAOQgZ-jDdpEbEfJvkTeRkomzGNZJ6HTr87TSxw-XVnAQ4GxGQQ@mail.gmail.com>
Minix3 uses NETBSD userland api now.
0001-Minix3-now-uses-NetBSD-userland-API.patch (application/octet-stream, 853 B)
From b24a525a669d48832453de45382a80f2f849ead0 Mon Sep 17 00:00:00 2001
From: Nicholas Heath <[email protected]>
Date: Wed, 6 Feb 2013 07:53:12 +0000
Subject: [PATCH] Minix3 now uses NetBSD userland API.

---
 lib/autoconf/specific.m4 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4
index 0d173f2..6018938 100644
--- a/lib/autoconf/specific.m4
+++ b/lib/autoconf/specific.m4
@@ -368,6 +368,8 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 
   AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
   if test "$MINIX" = yes; then
+    AC_DEFINE([_NETBSD_SOURCE], [1],
+      [Define to 1 on MINIX3 to enable NetBSD userland API.])
     AC_DEFINE([_POSIX_SOURCE], [1],
       [Define to 1 if you need to in order for `stat' and other
        things to work.])
-- 
1.7.7
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.