diff options
Diffstat (limited to 'pkgs/by-name/us/ustr/va_args.patch')
-rw-r--r-- | pkgs/by-name/us/ustr/va_args.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/by-name/us/ustr/va_args.patch b/pkgs/by-name/us/ustr/va_args.patch new file mode 100644 index 0000000000000..f75b537485d89 --- /dev/null +++ b/pkgs/by-name/us/ustr/va_args.patch @@ -0,0 +1,23 @@ +diff --git a/ustr-compiler.h b/ustr-compiler.h +index 9e71276..c5f847a 100644 +--- a/ustr-compiler.h ++++ b/ustr-compiler.h +@@ -11,17 +11,11 @@ + #define USTR_CONF_HAVE_ATTR_FMT 1 + #endif + ++#include <stdarg.h> + /* We assume this is enough, + * C99 specifies that va_copy() exists and is a macro */ +-#ifdef va_copy + # define USTR_CONF_HAVE_VA_COPY 1 + # define USTR__VA_COPY(x, y) va_copy(x, y) +-#elif __va_copy +-# define USTR_CONF_HAVE_VA_COPY 1 +-# define USTR__VA_COPY(x, y) __va_copy(x, y) +-#else +-# define USTR_CONF_HAVE_VA_COPY 0 +-#endif + + #ifndef USTR_CONF_HAVE_ATTR_NONNULL + #if defined(__GNUC__) && (__GNUC__ > 3) /* not sure */ |