From: Panu Matilainen Date: Wed, 23 Dec 2009 11:31:57 +0000 (+0200) Subject: Only rpmrc.c cares about utsname.h, move out of system.h X-Git-Tag: rpm-4.9.0-beta1~1072 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f70b1c76d51dd2e32ff48ab75b1fa4b06d582f4f;p=platform%2Fupstream%2Frpm.git Only rpmrc.c cares about utsname.h, move out of system.h --- diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 0818deb..08df74e 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -5,6 +5,10 @@ #include #endif +#if HAVE_SYS_UTSNAME_H +#include +#endif + #include /* XXX for /etc/rpm/platform contents */ #if HAVE_SYS_SYSTEMCFG_H diff --git a/system.h b/system.h index da006b4..71a4999 100644 --- a/system.h +++ b/system.h @@ -151,10 +151,6 @@ char *realpath(const char *path, char resolved_path []); #include #endif -#if HAVE_SYS_UTSNAME_H -#include -#endif - #if HAVE_SYS_WAIT_H #include #endif