Browse Source

Change to build w/ -std=c99

Peter S. Mazinger 19 years ago
parent
commit
60155d4649
2 changed files with 5 additions and 5 deletions
  1. 4 3
      libc/misc/error/error.c
  2. 1 2
      libc/signal/sigpause.c

+ 4 - 3
libc/misc/error/error.c

@@ -41,8 +41,9 @@ libc_hidden_proto(stdout)
 libc_hidden_proto(stderr)
 
 /* This variable is incremented each time `error' is called.  */
+libc_hidden_proto(error_message_count)
 unsigned int error_message_count = 0;
-hidden_strong_alias(error_message_count, __error_message_count)
+libc_hidden_def(error_message_count)
 /* Sometimes we want to have at most one error per line.  This
    variable controls whether this mode is selected or not.  */
 int error_one_per_line;
@@ -61,7 +62,7 @@ attribute_hidden void __error (int status, int errnum, const char *message, ...)
     va_start (args, message);
     vfprintf (stderr, message, args);
     va_end (args);
-    ++__error_message_count;
+    ++error_message_count;
     if (errnum) {
 	fprintf (stderr, ": %s", strerror (errnum));
     }
@@ -97,7 +98,7 @@ attribute_hidden void __error_at_line (int status, int errnum, const char *file_
     vfprintf (stderr, message, args);
     va_end (args);
 
-    ++__error_message_count;
+    ++error_message_count;
     if (errnum) {
 	fprintf (stderr, ": %s", strerror (errnum));
     }

+ 1 - 2
libc/signal/sigpause.c

@@ -19,9 +19,8 @@
 
 #define __UCLIBC_HIDE_DEPRECATED__
 /* psm: need the BSD version of sigpause here */
-#undef _GNU_SOURCE
-#define _BSD_SOURCE
 #include <errno.h>
+#define __FAVOR_BSD
 #include <signal.h>
 #include <stddef.h>		/* For NULL.  */