about summary refs log tree commit diff
path: root/src/stdio/vswscanf.c
diff options
context:
space:
mode:
authorIsaac Dunham <idunham@lavabit.com>2013-04-05 23:20:28 -0700
committerIsaac Dunham <idunham@lavabit.com>2013-04-05 23:20:28 -0700
commit14f0272ea1775c35801b2bc17e67ef8bb7e9742d (patch)
tree4e4f0d51e1b4f6b90a79968ef24941f182d4b325 /src/stdio/vswscanf.c
parentced64995c26a28ae40c5ae356b6c6a87a3bdf5ce (diff)
downloadmusl-14f0272ea1775c35801b2bc17e67ef8bb7e9742d.tar.gz
musl-14f0272ea1775c35801b2bc17e67ef8bb7e9742d.tar.xz
musl-14f0272ea1775c35801b2bc17e67ef8bb7e9742d.zip
Add ABI compatability aliases.
GNU used several extensions that were incompatible with C99 and POSIX,
so they used alternate names for the standard functions.

The result is that we need these to run standards-conformant programs
that were linked with glibc.
Diffstat (limited to 'src/stdio/vswscanf.c')
-rw-r--r--src/stdio/vswscanf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stdio/vswscanf.c b/src/stdio/vswscanf.c
index 7a2f7c7a..411dd39c 100644
--- a/src/stdio/vswscanf.c
+++ b/src/stdio/vswscanf.c
@@ -1,4 +1,5 @@
 #include "stdio_impl.h"
+#include "libc.h"
 #include <wchar.h>
 
 static size_t wstring_read(FILE *f, unsigned char *buf, size_t len)
@@ -34,3 +35,5 @@ int vswscanf(const wchar_t *restrict s, const wchar_t *restrict fmt, va_list ap)
 	};
 	return vfwscanf(&f, fmt, ap);
 }
+
+weak_alias(vswscanf,__isoc99_vswscanf);