bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compilation failure of xvasprintf.c on FreeBSD 4.x


From: Martin Lambers
Subject: Compilation failure of xvasprintf.c on FreeBSD 4.x
Date: Mon, 21 Aug 2006 19:36:06 +0200
User-agent: Mutt/1.5.12-2006-07-14

Hi!

Roman Bogorodskiy reported that xvasprintf.c fails to compile on FreeBSD
4.x, and that the patch below fixes that. He can give more details if
necessary. Apparently, FreeBSD does not have va_copy(). This should be
catched by stdarg.m4, right?

Regards,
Martin


--- gnulib/xvasprintf.c.orig    Fri Aug 11 17:26:52 2006
+++ gnulib/xvasprintf.c Fri Aug 11 17:27:31 2006
@@ -37,6 +37,10 @@
 # define EOVERFLOW E2BIG
 #endif
 
+#ifndef gl_va_copy
+# define gl_va_copy(a,b) (a) = (b)
+#endif
+
 static inline char *
 xstrcat (size_t argcount, va_list args)
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]