aboutsummaryrefslogtreecommitdiffstats
path: root/main/libspf2/fix-gcc-variadic-macros.patch
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2015-11-06 13:56:54 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-09 08:12:53 +0000
commit13e4a855da68d9fd6ed8d3a3ad50cfe904db50d0 (patch)
treeac62f094d857216deec8d2f5670ea12cea955db9 /main/libspf2/fix-gcc-variadic-macros.patch
parent5e73fa83e7fbac142db63ff9f2bb1839e8f9e1ba (diff)
downloadaports-13e4a855da68d9fd6ed8d3a3ad50cfe904db50d0.tar.bz2
aports-13e4a855da68d9fd6ed8d3a3ad50cfe904db50d0.tar.xz
main/libspf2: fix gcc variadic macros
Diffstat (limited to 'main/libspf2/fix-gcc-variadic-macros.patch')
-rw-r--r--main/libspf2/fix-gcc-variadic-macros.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/libspf2/fix-gcc-variadic-macros.patch b/main/libspf2/fix-gcc-variadic-macros.patch
new file mode 100644
index 0000000000..caac94a90f
--- /dev/null
+++ b/main/libspf2/fix-gcc-variadic-macros.patch
@@ -0,0 +1,18 @@
+diff --git a/src/include/spf_log.h b/src/include/spf_log.h
+index 0d2adeb..4e22ef4 100644
+--- a/src/include/spf_log.h
++++ b/src/include/spf_log.h
+@@ -60,10 +60,10 @@ void SPF_debugv( const char *file, int line, const char *format, va_list ap ) __
+
+ #if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
+
+-#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, __VA_ARGS__ )
++#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
+
+ #elif defined( __GNUC__ )