Hi,

since config.h.in is recreated by autoheader (from configure.ac), I also
include the removal of the lines in question from configure.ac in the
patch. New one attached.

Martin
diff -ru wmweather+-2.9/b0rken/snprintf.c wmweather+-2.9_new/b0rken/snprintf.c
--- wmweather+-2.9/b0rken/snprintf.c	2007-04-20 14:36:37.000000000 +0200
+++ wmweather+-2.9_new/b0rken/snprintf.c	2007-04-20 14:26:32.000000000 +0200
@@ -35,7 +35,7 @@
     fprintf(stderr, "Using snprintf replacement\n");
 
     va_start(ap, format);
-    r=vsnprintf(str, size, format, ap);
+    r=my_vsnprintf(str, size, format, ap);
     va_end(ap);
     return r;
 }
diff -ru wmweather+-2.9/config.h.in wmweather+-2.9_new/config.h.in
--- wmweather+-2.9/config.h.in	2007-04-20 14:36:40.000000000 +0200
+++ wmweather+-2.9_new/config.h.in	2007-04-20 14:26:32.000000000 +0200
@@ -216,6 +216,3 @@
 typedef signed ssize_t;
 #endif
 
-#ifndef HAVE_WORKING_VSNPRINTF
-# define vsnprintf(str, size, format, ap) my_vsnprintf(str, size, format, ap)
-#endif
diff -ru wmweather+-2.9/configure.ac wmweather+-2.9_new/configure.ac
--- wmweather+-2.9/configure.ac	2004-05-14 04:55:39.000000000 +0200
+++ wmweather+-2.9_new/configure.ac	2007-04-20 14:38:10.000000000 +0200
@@ -72,10 +72,6 @@
 if test "$ac_cv_func_vprintf" != "yes"; then AC_MSG_WARN(vprintf() doesn't seem to exist); fi
 AC_CHECK_FUNCS([atexit dup2 mkdir pow select strchr strcspn strdup strerror strrchr strspn strstr strtol],, AC_MSG_WARN($ac_func doesn't seem to be available))
 FUNC_SNPRINTF_LIBOBJ
-AH_BOTTOM(
-[#ifndef HAVE_WORKING_VSNPRINTF
-# define vsnprintf(str, size, format, ap) my_vsnprintf(str, size, format, ap)
-#endif])
 
 CFLAGS="$CFLAGS \$(X_CFLAGS) \$(LIBWWW_CFLAGS)"
 LIBS="$LIBS \$(LIBWWW_LIBS)"

Reply via email to