From 09e171ef7f95078435ee6a133b9eabe419fa03ce Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 17 Sep 2002 10:01:02 +0000 Subject: 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 was de-__P(())ified without testing. This file gets included before , so the #define now affects (and breaks) `setbuffer' in where it didn't affect `setbuffer'. --- gnu/usr.bin/as/config/ho-sysv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu') 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(); -- cgit v1.1