From: Jo-Philipp Wich Date: Mon, 11 Jul 2011 00:00:11 +0000 (+0000) Subject: [packages] procps: __attribute__((constructor)) needs an arg for gcc >= 4.3, fixes... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=8ed5b6bc498152f9150a0667fab8fef5b4cbca06;hp=599105ef577c22d1845431c7a1f72981a034cdf1 [packages] procps: __attribute__((constructor)) needs an arg for gcc >= 4.3, fixes procps compilation on backfire SVN-Revision: 27585 --- diff --git a/utils/procps/patches/020_hz_fix.patch b/utils/procps/patches/020_hz_fix.patch index 1a4e482640..1954453a49 100644 --- a/utils/procps/patches/020_hz_fix.patch +++ b/utils/procps/patches/020_hz_fix.patch @@ -4,7 +4,7 @@ return !!rc; } -+#if __GNUC__ < 4 ++#if __GNUC__ < 4 || __GNUC_MINOR__ < 3 static void init_libproc(void) __attribute__((constructor)); +#else +static void init_libproc(void) __attribute__((constructor(200))); @@ -19,7 +19,7 @@ int linux_version_code; -+#if __GNUC__ < 4 ++#if __GNUC__ < 4 || __GNUC_MINOR__ < 3 static void init_Linux_version(void) __attribute__((constructor)); +#else +static void init_Linux_version(void) __attribute__((constructor(100)));