diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2003-08-07 17:26:45 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2003-08-07 17:26:45 +0000 |
commit | db7b3df3757cc0c25d0ab99a09c98d81fd6490e5 (patch) | |
tree | 1829b14663f149ae2c4626fbb08bf788ab35e9a9 /lang/elk/files/patch-aq | |
parent | Add an entry for x11-wm/metacity-setup. (diff) |
fix build on CURRENT
- s|varargs.h|stdarg.h|
- s|void va_start(va_list ap);|void va_start(va_list ap, last);|g
Diffstat (limited to '')
-rw-r--r-- | lang/elk/files/patch-aq | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lang/elk/files/patch-aq b/lang/elk/files/patch-aq new file mode 100644 index 000000000000..5380aa438dde --- /dev/null +++ b/lang/elk/files/patch-aq @@ -0,0 +1,31 @@ +--- src/terminate.c.orig Thu Aug 7 18:57:35 2003 ++++ src/terminate.c Thu Aug 7 19:09:22 2003 +@@ -1,7 +1,7 @@ + /* Termination functions, weak pointers. + */ + +-#include <varargs.h> ++#include <stdarg.h> + + #include "kernel.h" + +@@ -50,17 +50,11 @@ + * Null is returned when the object has not been found. + */ + /*VARARGS*/ +-Object Find_Object (va_alist) va_dcl { ++Object Find_Object (int type, GENERIC group, MATCHFUN match, ...) { + WEAK_NODE *p; +- int type; +- GENERIC group; +- MATCHFUN match; + va_list args; + +- va_start (args); +- type = va_arg (args, int); +- group = va_arg (args, GENERIC); +- match = va_arg (args, MATCHFUN); ++ va_start (args, match); + for (p = first; p; p = p->next) { + if (TYPE(p->obj) != type || p->group != group) + continue; |