summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/perror.c3
-rw-r--r--libc/stdio/popen.c1
-rw-r--r--libc/stdio/scanf.c1
-rw-r--r--libc/stdio/vfprintf.c1
4 files changed, 5 insertions, 1 deletions
diff --git a/libc/stdio/perror.c b/libc/stdio/perror.c
index 26a0cebd9..d69ccd5c3 100644
--- a/libc/stdio/perror.c
+++ b/libc/stdio/perror.c
@@ -11,7 +11,7 @@
#warning CONSIDER: Increase buffer size for error message (non-%m case)?
#endif
-void perror(register const char *s)
+void attribute_hidden __perror(register const char *s)
{
/* If the program is calling perror, it's a safe bet that printf and
* friends are used as well. It is also possible that the calling
@@ -34,3 +34,4 @@ void perror(register const char *s)
}
#endif
}
+strong_alias(__perror,perror)
diff --git a/libc/stdio/popen.c b/libc/stdio/popen.c
index 2e9985a39..00c2d7bb1 100644
--- a/libc/stdio/popen.c
+++ b/libc/stdio/popen.c
@@ -16,6 +16,7 @@
#define waitpid __waitpid
#define execl __execl
+#define dup2 __dup2
#include <stdio.h>
#include <stdlib.h>
diff --git a/libc/stdio/scanf.c b/libc/stdio/scanf.c
index 19484d588..4db939f93 100644
--- a/libc/stdio/scanf.c
+++ b/libc/stdio/scanf.c
@@ -47,6 +47,7 @@
#define mbsrtowcs __mbsrtowcs
#define mbrtowc __mbrtowc
#define ungetc __ungetc
+#define iswspace __iswspace
#define _ISOC99_SOURCE /* for LLONG_MAX primarily... */
#define _GNU_SOURCE
diff --git a/libc/stdio/vfprintf.c b/libc/stdio/vfprintf.c
index e3f389a6b..d835038ba 100644
--- a/libc/stdio/vfprintf.c
+++ b/libc/stdio/vfprintf.c
@@ -93,6 +93,7 @@
#define wcsnlen __wcsnlen
#define wcsrtombs __wcsrtombs
#define mbsrtowcs __mbsrtowcs
+#define btowc __btowc
#define _ISOC99_SOURCE /* for ULLONG primarily... */
#define _GNU_SOURCE