(main): If STDOUT_UNBUFFERED is defined, make stdout stream unbuffered.
authordrepper <drepper>
Tue, 11 Apr 2000 16:11:33 +0000 (16:11 +0000)
committerdrepper <drepper>
Tue, 11 Apr 2000 16:11:33 +0000 (16:11 +0000)
test-skeleton.c

index 729d55f..db04b11 100644 (file)
@@ -122,6 +122,10 @@ main (int argc, char *argv[])
   int status;
   int opt;
 
+#ifdef STDOUT_UNBUFFERED
+  setbuf (stdout, NULL);
+#endif
+
   while ((opt = getopt_long (argc, argv, "", options, NULL)) != -1)
     switch (opt)
       {