summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-09-17 10:01:02 +0000
committerbde <bde@FreeBSD.org>2002-09-17 10:01:02 +0000
commit09e171ef7f95078435ee6a133b9eabe419fa03ce (patch)
tree1cc7f0b212cc2def7a1506090d679a9b76b123b6 /gnu
parent91d09bb4fb6d808704de2dc0f8c6f78be43f1e69 (diff)
downloadFreeBSD-src-09e171ef7f95078435ee6a133b9eabe419fa03ce.zip
FreeBSD-src-09e171ef7f95078435ee6a133b9eabe419fa03ce.tar.gz
Make `as' compile before it is axed. It still uses the archaic BSD
interface setbuffer(), and emulates setbuffer() on USG systems using a #define of setbuffer() in terms of setvbuf(). The #define is correctly ifdefed in some places but was not correctly ifdefed here -- i.e., BSD was essentially configured as USG here. This became fatal when <stdio.h> was de-__P(())ified without testing. This file gets included before <stdio.h>, so the #define now affects (and breaks) `setbuffer<left parentheses>' in <stdio.h> where it didn't affect `setbuffer<whitespace>'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/as/config/ho-sysv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/as/config/ho-sysv.h b/gnu/usr.bin/as/config/ho-sysv.h
index 504a5aa..64f4ef7 100644
--- a/gnu/usr.bin/as/config/ho-sysv.h
+++ b/gnu/usr.bin/as/config/ho-sysv.h
@@ -21,7 +21,9 @@
#define HO_USG
+#ifdef USG
#define setbuffer(stream, buf, size) setvbuf((stream), (buf), _IOLBF, (size))
+#endif
extern int free();
extern char *malloc();
OpenPOWER on IntegriCloud