From dcfd61e65c687261f9894f1af0fed6e3b9e5ecc6 Mon Sep 17 00:00:00 2001 From: Bruce Evans 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 504a5aae6b22..64f4ef7ea8c0 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.3