summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-23 13:31:57 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-23 13:31:57 +0200
commitf70b1c76d51dd2e32ff48ab75b1fa4b06d582f4f (patch)
tree50a7a92d95c42d781cbe318f777ea8990010cdcc
parenta39dc445fc0ccf03e22189699e4d6256658536f0 (diff)
downloadrpm-f70b1c76d51dd2e32ff48ab75b1fa4b06d582f4f.tar.gz
Only rpmrc.c cares about utsname.h, move out of system.h
-rw-r--r--lib/rpmrc.c4
-rw-r--r--system.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 0818deb57..08df74eee 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -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
diff --git a/system.h b/system.h
index da006b4a8..71a4999ae 100644
--- 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