about summary refs log tree commit diff
path: root/src/libmain/shared.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-12-22T16·40+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-12-22T16·40+0000
commit833f2fc92da8d31c62eb35dae8b3861829a1383a (patch)
tree1b17d4abba32942bdf2ea0f47def8c94c6ee14cc /src/libmain/shared.cc
parentcf0287c09e8b5816c65dd265c4ef167865d70172 (diff)
* GCC 2.95 compatibility.
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r--src/libmain/shared.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index b99a74bb4027..92349488e761 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -1,3 +1,4 @@
+
 #include <iostream>
 #include <cctype>
 
@@ -71,7 +72,9 @@ int main(int argc, char * * argv)
     ATinit(argc, argv, &bottomOfStack);
 
     /* Turn on buffering for cerr. */
+#if HAVE_PUBSETBUF
     cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
+#endif
 
     try {
         initAndRun(argc, argv);