[packages] procps: __attribute__((constructor)) needs an arg for gcc >= 4.3, fixes procps compilation on backfire

git-svn-id: svn://svn.openwrt.org/openwrt/packages@27585 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-07-11 00:00:11 +00:00
parent 90274b4d90
commit 57db478bc5

View File

@ -4,7 +4,7 @@
return !!rc; return !!rc;
} }
+#if __GNUC__ < 4 +#if __GNUC__ < 4 || __GNUC_MINOR__ < 3
static void init_libproc(void) __attribute__((constructor)); static void init_libproc(void) __attribute__((constructor));
+#else +#else
+static void init_libproc(void) __attribute__((constructor(200))); +static void init_libproc(void) __attribute__((constructor(200)));
@ -19,7 +19,7 @@
int linux_version_code; int linux_version_code;
+#if __GNUC__ < 4 +#if __GNUC__ < 4 || __GNUC_MINOR__ < 3
static void init_Linux_version(void) __attribute__((constructor)); static void init_Linux_version(void) __attribute__((constructor));
+#else +#else
+static void init_Linux_version(void) __attribute__((constructor(100))); +static void init_Linux_version(void) __attribute__((constructor(100)));