diff options
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. */ |