a5f5b18417
on Linux, force use of specific fstropen code. Also fix check for AIX in the source code.
22 lines
601 B
Text
22 lines
601 B
Text
$NetBSD: patch-ac,v 1.2 2001/07/04 03:08:58 jlam Exp $
|
|
|
|
--- src/lib/oogl/util/futil.c.orig Thu Feb 22 23:41:31 2001
|
|
+++ src/lib/oogl/util/futil.c
|
|
@@ -173,7 +173,7 @@
|
|
#define _cnt __cnt
|
|
#endif
|
|
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD__) || defined(__NetBSD__)
|
|
#define _base _bf._base
|
|
#define _ptr _p
|
|
#define _cnt _r
|
|
@@ -869,7 +869,7 @@
|
|
|
|
#else /* Roughly vanilla stdio */
|
|
|
|
-#if defined(AIX) || defined(__osf__) || defined(__hpux) || defined(__FreeBSD__)
|
|
+#if defined(AIX) || defined(__osf__) || defined(__hpux) || defined(__FreeBSD__) || defined(__NetBSD__)
|
|
|
|
#define USE_FSTROPEN_1 1
|
|
|