pkgsrc/devel/cqual/patches/patch-ca
rillig ad20db380a Added some patches to make Cqual build on IRIX 6.5/mips with MIPSpro. (By
the way, all these patches have already been reported upstream and are
mostly fixed.)
2006-01-19 04:21:39 +00:00

20 lines
944 B
Text

$NetBSD: patch-ca,v 1.1 2006/01/19 04:21:39 rillig Exp $
Made the handling of the variadic macro arguments conforming to ISO C99.
--- src/cqual.h.orig 2003-09-10 20:52:04.000000000 +0200
+++ src/cqual.h 2006-01-19 04:28:23.000000000 +0100
@@ -60,11 +60,11 @@ void load_config_file_quals(const char *
/* If you use fail_loc, you must give a 3rd argument! Pass 0 if you
don't need anything there. */
-#define fail_loc(l, s, args...) fail("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), args)
+#define fail_loc(l, s, ...) fail("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), __VA_ARGS__)
/* If you use user_error_loc, you must give a 3rd argument! Pass 0 if you
don't need anything there. */
-#define user_error_loc(l, s, args...) user_error("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), args)
+#define user_error_loc(l, s, ...) user_error("(at %s:%ld) " s, ((l)->filename), ((l)->lineno), __VA_ARGS__)
EXTERN_C_END