diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 19:23:23 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 19:23:23 +0000 |
commit | 60155d4649bde150591fb8ce3c6b0260739ad05c (patch) | |
tree | e848c0809eae87a1a376ea3ccb32d868076984ae /libc | |
parent | a47a8b46a57854c6cff0a6b6262cbe02bd7e6f51 (diff) |
Change to build w/ -std=c99
Diffstat (limited to 'libc')
-rw-r--r-- | libc/misc/error/error.c | 7 | ||||
-rw-r--r-- | libc/signal/sigpause.c | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c index 5c1109ea0..dcc3ed8e2 100644 --- a/libc/misc/error/error.c +++ b/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)); } diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c index 2164c5076..8c99af0a1 100644 --- a/libc/signal/sigpause.c +++ b/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. */ |