Removed the need to define {v,}wprintf in utils.h.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 31 Oct 2007 04:59:11 +0000 (05:59 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 31 Oct 2007 04:59:11 +0000 (05:59 +0100)
common/Makefile.am
common/utils.c
daemon/Makefile.am
daemon/main.c
include/utils.h

index 8030f44..2c6b0b7 100644 (file)
@@ -11,6 +11,7 @@ libhttp_a_SOURCES =   http.c
 httest_SOURCES =       httest.c
 httest_LDADD =         libhttp.a libcommon.a
 
+libcommon_a_CPPFLAGS = -D_ISOC99_SOURCE
 libcommon_a_CFLAGS = -fPIC
 libhttp_a_CFLAGS = -fPIC
 
index d82f3c3..49fb11b 100644 (file)
@@ -29,6 +29,7 @@
 #include <unistd.h>
 #include <sys/time.h>
 #include <netinet/in.h>
+#include <alloca.h>
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
index 9d8f77c..1ff686c 100644 (file)
@@ -30,4 +30,4 @@ doldacond_SOURCES=    main.c \
 EXTRA_DIST=emacs-local
 doldacond_LDADD=$(top_srcdir)/common/libcommon.a \
                @KRB5_LIBS@ -lbz2 -lz -lgdbm @PAM_LIBS@ @KEYUTILS_LIBS@
-doldacond_CPPFLAGS=-I$(top_srcdir)/include -DDAEMON @KRB5_CFLAGS@
+doldacond_CPPFLAGS=-I$(top_srcdir)/include -DDAEMON @KRB5_CFLAGS@ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
index 551ed5c..58d1c6c 100644 (file)
@@ -30,6 +30,7 @@
 #include <sys/wait.h>
 #include <stdarg.h>
 #include <fcntl.h>
+#include <sys/select.h>
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
index 1c634d8..e9336cd 100644 (file)
@@ -70,12 +70,6 @@ extern struct cbchain_ ## name { \
     void *data; \
 } * name
 
-extern int vswprintf (wchar_t *__restrict __s, size_t __n,
-                     __const wchar_t *__restrict __format,
-                     __gnuc_va_list __arg);
-extern int swprintf (wchar_t *__restrict __s, size_t __n,
-                    __const wchar_t *__restrict __format, ...);
-
 char *vsprintf2(char *format, va_list al);
 char *sprintf2(char *format, ...)
 #if defined(__GNUC__)