summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-06-11 20:05:40 +0000
committerRoland McGrath <roland@redhat.com>1992-06-11 20:05:40 +0000
commit3893d9217c54b7a710f3003ea4eef3b962cffb44 (patch)
treeb462e959881ab56ccaa129717a9b1e033dea1bb2 /main.c
parentefc335d4a1ca4e6c5ca345e3a30f9db265d0b3d2 (diff)
downloadgunmake-3893d9217c54b7a710f3003ea4eef3b962cffb44.tar.gz
Formerly main.c.~48~
Diffstat (limited to 'main.c')
-rw-r--r--main.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/main.c b/main.c
index a959d77..86ebdf6 100644
--- a/main.c
+++ b/main.c
@@ -421,22 +421,12 @@ main (argc, argv, envp)
#ifndef SETLINEBUF_MISSING
setlinebuf (stdout);
#else
-
- /* XXX This should be decided by an autoconf test program. */
-#if (defined (USGr3) || defined (HPUX) || defined (hpux) \
- || defined (M_XENIX) || defined (APOLLO) || defined (DGUX) \
- || defined (__IBMR2) || defined (POSIX))
+#ifndef SETVBUF_REVERSED
setvbuf (stdout, (char *) 0, _IOLBF, BUFSIZ);
-#else /* Not USGr3 and not HPUX et al. */
-#ifdef USG
-#ifdef sgi
+#else /* setvbuf not reversed. */
+ /* Some buggy systems lose if we pass 0 instead of allocating ourselves. */
setvbuf (stdout, _IOLBF, xmalloc (BUFSIZ), BUFSIZ);
-#else
- setvbuf (stdout, _IOLBF, (char *) 0, BUFSIZ);
-#endif
-#endif /* USG. */
-#endif /* USGr3. */
-
+#endif /* setvbuf reversed. */
#endif /* setlinebuf missing. */
/* Set up to access user data (files). */