Remove <string.h> include from system.h into the few places that still need
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Jan 2010 13:17:34 +0000 (15:17 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Jan 2010 13:17:34 +0000 (15:17 +0200)
- most of the places get it through <rpm/rpmstring.h> already

lib/merge.c
misc/glob.c
rpmio/fts.c
rpmio/rpmmalloc.c
system.h
tools/javadeps.c

index 9b541a6..5fcd9a4 100644 (file)
@@ -55,6 +55,7 @@ static char sccsid[] = "@(#)merge.c   8.2 (Berkeley) 2/14/94";
 
 #include "system.h"
 #include <stdlib.h>
+#include <string.h>
 #include "lib/rpmdb_internal.h" /* XXX for mergesort */
 
 #define ISIZE sizeof(int)
index be393f8..28e6edd 100644 (file)
@@ -25,6 +25,7 @@
 # include "system.h"
 
 # include <stdlib.h>
+# include <string.h>
 # include <pwd.h>
 # include <assert.h>
 
index 325e1a9..ec9636b 100644 (file)
@@ -61,6 +61,7 @@ static char sccsid[] = "@(#)fts.c     8.6 (Berkeley) 8/14/94";
 #   define _STAT_VER           0
 #endif
 #include "system.h"
+#include <string.h>
 #include "rpmio/fts.h"
 #include <rpm/rpmio.h>
 #include <rpm/rpmurl.h>
index eec73ed..6c640c8 100644 (file)
@@ -5,6 +5,7 @@
 #include "system.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "debug.h"
 
index 1101ed9..71fd887 100644 (file)
--- a/system.h
+++ b/system.h
@@ -32,10 +32,6 @@ extern char ** environ;
 #endif
 #endif
 
-#ifdef HAVE_STRING_H
-# include <string.h>
-#endif
-
 #if !defined(HAVE_STPCPY)
 char * stpcpy(char * dest, const char * src);
 #endif
index 40055b5..9b68cab 100644 (file)
@@ -66,6 +66,7 @@ marc@redhat.com and ewt@redhat.com.
 
 #include <stdlib.h>
 #include <stdarg.h>
+#include <string.h>
 #include <netdb.h>
 #include <rpm/rpmutil.h>
 #include "debug.h"