diff options
author | inoguchi <kinichiro.inoguchi@hp.com> | 2014-08-12 17:21:48 +0900 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-08-12 21:18:27 -0500 |
commit | 6dccbae6638cc855c84f5f91434e45c24a6e405e (patch) | |
tree | 04e221691e3f368aeb45aa4f7b69c8106f80fbd3 | |
parent | 46b6df7cb035e20787702118b0a69da9b8a03dfa (diff) | |
download | portable-6dccbae6638cc855c84f5f91434e45c24a6e405e.tar.gz portable-6dccbae6638cc855c84f5f91434e45c24a6e405e.tar.bz2 portable-6dccbae6638cc855c84f5f91434e45c24a6e405e.zip |
update stdio.h for including stdarg.h
it seems that including stdarg.h is needed for defining va_list
environment is hpux 11.31(ia64) with gcc 4.7.1.
without stdarg.h, I got compilation error like this.
"error: 'va_list' undeclared (first use in this function)"
I checked with gcc -E, then I noticed that __va_list is defined but va_list is not.
"typedef __gnuc_va_list __va_list;"
with including stdarg.h, va_list is defined.
"typedef __gnuc_va_list va_list;"
-rw-r--r-- | include/stdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index e23fbe5..fffa170 100644 --- a/include/stdio.h +++ b/include/stdio.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #define LIBCRYPTOCOMPAT_STDIO_H | 4 | #define LIBCRYPTOCOMPAT_STDIO_H |
5 | 5 | ||
6 | #ifdef NO_ASPRINTF | 6 | #ifdef NO_ASPRINTF |
7 | #include <stdarg.h> | ||
7 | int vasprintf(char **str, const char *fmt, va_list ap); | 8 | int vasprintf(char **str, const char *fmt, va_list ap); |
8 | int asprintf(char **str, const char *fmt, ...); | 9 | int asprintf(char **str, const char *fmt, ...); |
9 | #endif | 10 | #endif |