Only rpmrc.c cares about utsname.h, move out of system.h
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 11:31:57 +0000 (13:31 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 11:31:57 +0000 (13:31 +0200)
lib/rpmrc.c
system.h

index 0818deb..08df74e 100644 (file)
@@ -5,6 +5,10 @@
 #include <setjmp.h>
 #endif
 
+#if HAVE_SYS_UTSNAME_H
+#include <sys/utsname.h>
+#endif
+
 #include <ctype.h>     /* XXX for /etc/rpm/platform contents */
 
 #if HAVE_SYS_SYSTEMCFG_H
index da006b4..71a4999 100644 (file)
--- a/system.h
+++ b/system.h
@@ -151,10 +151,6 @@ char *realpath(const char *path, char resolved_path []);
 #include <sys/mman.h>
 #endif
 
-#if HAVE_SYS_UTSNAME_H
-#include <sys/utsname.h>
-#endif
-
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif