Move <ctype.h> include out of system.h to the places that need it
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Jan 2010 13:33:47 +0000 (15:33 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Jan 2010 13:33:47 +0000 (15:33 +0200)
build.c
build/misc.c
build/parsePreamble.c
build/parseReqs.c
lib/query.c
rpmio/rpmfileutil.c
system.h
tools/javadeps.c

diff --git a/build.c b/build.c
index 5d63384..05bafee 100644 (file)
--- a/build.c
+++ b/build.c
@@ -6,6 +6,7 @@
 
 #include <libgen.h>
 #include <errno.h>
+#include <ctype.h>
 
 #include <rpm/rpmcli.h>
 #include <rpm/rpmtag.h>
index 4e16765..25c4b51 100644 (file)
@@ -3,6 +3,7 @@
  */
 #include "system.h"
 
+#include <ctype.h>
 #include <rpm/rpmbuild.h>
 #include "debug.h"
 
index b5f1780..e31af74 100644 (file)
@@ -5,6 +5,8 @@
 
 #include "system.h"
 
+#include <ctype.h>
+
 #include <rpm/header.h>
 #include <rpm/rpmbuild.h>
 #include <rpm/rpmlog.h>
index d12aca3..92e6ace 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "system.h"
 
+#include <ctype.h>
 #include <rpm/rpmtypes.h>
 #include <rpm/rpmbuild.h>
 #include <rpm/rpmlog.h>
index 6442975..1995f8a 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <errno.h>
 #include <inttypes.h>
+#include <ctype.h>
 
 #include <rpm/rpmcli.h>
 #include <rpm/header.h>
index 2bbddc9..f2aa728 100644 (file)
@@ -20,6 +20,7 @@
 #include <sys/wait.h>
 #include <errno.h>
 #include <popt.h>
+#include <ctype.h>
 
 #include <rpm/rpmfileutil.h>
 #include <rpm/rpmurl.h>
index b04d2ef..1526446 100644 (file)
--- a/system.h
+++ b/system.h
@@ -67,8 +67,6 @@ char * stpncpy(char * dest, const char * src, size_t n);
 # endif /* HAVE_NDIR_H */
 #endif /* HAVE_DIRENT_H */
 
-#include <ctype.h>
-
 #if HAVE_LIMITS_H
 #include <limits.h>
 #endif
index 9b68cab..d4474f3 100644 (file)
@@ -69,6 +69,7 @@ marc@redhat.com and ewt@redhat.com.
 #include <string.h>
 #include <netdb.h>
 #include <rpm/rpmutil.h>
+#include <ctype.h>
 #include "debug.h"
 
 /*---------typedefs---------*/