We came up with our own names for ATTRIBUTE_*, so why check if they're already #defined? Also remove a check for a gcc version older than RH9 (if non-linux needs that #define they can put it in their section.)
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -48,39 +48,23 @@ | |
| # define __const const | |
| #endif | |
| - | #ifndef ATTRIBUTE_UNUSED |
| # define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) | |
| - | #endif /* ATTRIBUTE_UNUSED */ |
| - | |
| - | #ifndef ATTRIBUTE_NORETURN |
| # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) | |
| - | #endif /* ATTRIBUTE_NORETURN */ |
| - | |
| - | #ifndef ATTRIBUTE_PACKED |
| # define ATTRIBUTE_PACKED __attribute__ ((__packed__)) | |
| - | #endif /* ATTRIBUTE_PACKED */ |
| - | |
| - | #ifndef ATTRIBUTE_ALIGNED |
| # define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m))) | |
| - | #endif /* ATTRIBUTE_ALIGNED */ |
| - | |
| - | #ifndef ATTRIBUTE_ALWAYS_INLINE |
| # if __GNUC_PREREQ (3,0) | |
| # define ATTRIBUTE_ALWAYS_INLINE __attribute__ ((always_inline)) inline | |
| # else | |
| # define ATTRIBUTE_ALWAYS_INLINE inline | |
| # endif | |
| - | #endif |
| /* -fwhole-program makes all symbols local. The attribute externally_visible | |
| forces a symbol global. */ | |
| - | #ifndef ATTRIBUTE_EXTERNALLY_VISIBLE |
| # if __GNUC_PREREQ (4,1) | |
| # define ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((__externally_visible__)) | |
| # else | |
| # define ATTRIBUTE_EXTERNALLY_VISIBLE | |
| # endif /* GNUC >= 4.1 */ | |
| - | #endif /* ATTRIBUTE_EXTERNALLY_VISIBLE */ |
| /* We use __extension__ in some places to suppress -pedantic warnings | |
| about GCC extensions. This feature didn't work properly before | |
| @@ -187,12 +171,6 @@ typedef unsigned long long int uintmax_t; | |
| #endif | |
| #endif | |
| - | // Is this for non-linux systems, or what? |
| - | |
| - | #if !((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)) |
| - | #define lchown chown |
| - | #endif |
| - | |
| /* uclibc does not implement daemon for no-mmu systems. | |
| * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. | |
| * For earlier versions there is no reliable way to check if we are building | |