LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File wflogs-includes.patch of Package wflogs (Project home:doiggl)

Index: wflogs-0.9.8/config/wfconfig.h
===================================================================
--- wflogs-0.9.8.orig/config/wfconfig.h
+++ wflogs-0.9.8/config/wfconfig.h
@@ -22,8 +22,9 @@
 #ifndef _WF_CONFIG_H
 #define _WF_CONFIG_H
 
+#include <algorithm>
 #include <iostream>
-#include <string>
+#include <string.h>
 #include <map>
 
 #include <getopt.h>
Index: wflogs-0.9.8/logs/wf_sort.cc
===================================================================
--- wflogs-0.9.8.orig/logs/wf_sort.cc
+++ wflogs-0.9.8/logs/wf_sort.cc
@@ -27,6 +27,7 @@ using namespace std;
 
 #include "wf_sort.h"
 #include "defs.h"
+#include <string.h>
 
 
 /* is_sorted() is a non standard function */
Index: wflogs-0.9.8/logs/wflogs_obfuscator.cc
===================================================================
--- wflogs-0.9.8.orig/logs/wflogs_obfuscator.cc
+++ wflogs-0.9.8/logs/wflogs_obfuscator.cc
@@ -27,6 +27,8 @@ using namespace std;
 
 #include <sstream>
 #include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 
 #include "wflogs_obfuscator.h"
 #include "defs.h"
Index: wflogs-0.9.8/logs/filter_y.yy
===================================================================
--- wflogs-0.9.8.orig/logs/filter_y.yy
+++ wflogs-0.9.8/logs/filter_y.yy
@@ -31,6 +31,7 @@ using namespace std;
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <string.h>
 
 #include "wfipaddr.h"
 #include "wfnetwork.h"
Index: wflogs-0.9.8/logs/filter.cc
===================================================================
--- wflogs-0.9.8.orig/logs/filter.cc
+++ wflogs-0.9.8/logs/filter.cc
@@ -27,6 +27,7 @@ using namespace std;
 
 #include <sys/types.h> /* for regex.h */
 #include <regex.h>
+#include <string.h>
 
 extern "C" time_t get_date(const char *p, const time_t *now);
 
Index: wflogs-0.9.8/input_modules/module.cc
===================================================================
--- wflogs-0.9.8.orig/input_modules/module.cc
+++ wflogs-0.9.8/input_modules/module.cc
@@ -26,6 +26,7 @@ using namespace std;
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h> /* for getcwd() */
 
 #ifdef USE_DYNAMIC
Index: wflogs-0.9.8/input_modules/common.cc
===================================================================
--- wflogs-0.9.8.orig/input_modules/common.cc
+++ wflogs-0.9.8/input_modules/common.cc
@@ -26,6 +26,7 @@ using namespace std;
 #endif
 
 #include <stdio.h>
+#include <string.h>
 #include <arpa/inet.h>
 
 #include "common.h"
Index: wflogs-0.9.8/output_modules/module.cc
===================================================================
--- wflogs-0.9.8.orig/output_modules/module.cc
+++ wflogs-0.9.8/output_modules/module.cc
@@ -26,6 +26,7 @@ using namespace std;
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h> /* for getcwd() */
 
 #ifdef USE_DYNAMIC
Index: wflogs-0.9.8/output_modules/whois.cc
===================================================================
--- wflogs-0.9.8.orig/output_modules/whois.cc
+++ wflogs-0.9.8/output_modules/whois.cc
@@ -26,6 +26,8 @@ using namespace std;
 #endif
 
 #include <stdio.h> // for snprintf (suppress) RV@@8
+#include <string.h>
+
 #include <unistd.h>
 #include <signal.h>
 #include <stdlib.h> // for malloc (suppress) RV@@8
Index: wflogs-0.9.8/wflogs/Makefile.am
===================================================================
--- wflogs-0.9.8.orig/wflogs/Makefile.am
+++ wflogs-0.9.8/wflogs/Makefile.am
@@ -36,7 +36,6 @@ wflogs_DEPENDENCIES = \
 		$(STATIC_OUTPUT_MODLIBS) \
 		$(top_srcdir)/output_modules/libmodules.a \
 		$(top_srcdir)/logs/libwflogs.a \
-		@wfnetobjs_libdir@/libwfnetobjs.la \
 		$(top_srcdir)/lib/libsupport.a
 wflogs_LDFLAGS = -rdynamic
 # We use -rdynamic in order to enable the dynamic libraries to use global
Index: wflogs-0.9.8/wflogs/Makefile.in
===================================================================
--- wflogs-0.9.8.orig/wflogs/Makefile.in
+++ wflogs-0.9.8/wflogs/Makefile.in
@@ -153,7 +153,7 @@ wflogs_LDADD =  		$(top_srcdir)/input_mo
 # We have to specify dependencies by hand because $(STATIC_INPUT_MODLIBS),
 # $(STATIC_OUTPUT_MODLIBS), and libwfnetobjs.la don't get included
 # automatically for mysterious reasons. ALL@@5
-wflogs_DEPENDENCIES =  		$(top_srcdir)/input_modules/module.o 		$(top_srcdir)/output_modules/module.o 		$(top_srcdir)/config/wfconfig.o 		$(STATIC_INPUT_MODLIBS) 		$(top_srcdir)/input_modules/libmodules.a 		$(STATIC_OUTPUT_MODLIBS) 		$(top_srcdir)/output_modules/libmodules.a 		$(top_srcdir)/logs/libwflogs.a 		@wfnetobjs_libdir@/libwfnetobjs.la 		$(top_srcdir)/lib/libsupport.a
+wflogs_DEPENDENCIES =  		$(top_srcdir)/input_modules/module.o 		$(top_srcdir)/output_modules/module.o 		$(top_srcdir)/config/wfconfig.o 		$(STATIC_INPUT_MODLIBS) 		$(top_srcdir)/input_modules/libmodules.a 		$(STATIC_OUTPUT_MODLIBS) 		$(top_srcdir)/output_modules/libmodules.a 		$(top_srcdir)/logs/libwflogs.a 		$(top_srcdir)/lib/libsupport.a
 
 wflogs_LDFLAGS = -rdynamic
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs