- small trivia to be gentle to gcc-2.95.x which had no va_copy but only __va_copy.
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)
| @@ -75,6 +75,14 @@ | |
| # endif | |
| #endif | |
| + | /* gcc-2.95 had no va_copy but only __va_copy. */ |
| + | #if !__GNUC_PREREQ (3,0) |
| + | # include <stdarg.h> |
| + | # if !defined va_copy && defined __va_copy |
| + | # define va_copy(d,s) __va_copy((d),(s)) |
| + | # endif |
| + | #endif |
| + | |
| /* ---- Endian Detection ------------------------------------ */ | |
| #if (defined __digital__ && defined __unix__) | |
| @@ -7,12 +7,8 @@ | |
| * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | |
| */ | |
| - | #include <stdio.h> |
| - | #include <errno.h> |
| - | #include <string.h> |
| - | #include <stdlib.h> |
| - | #include <syslog.h> |
| #include "libbb.h" | |
| + | #include <syslog.h> |
| int logmode = LOGMODE_STDIO; | |
| const char *msg_eol = "\n"; | |
| @@ -7,13 +7,8 @@ | |
| * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | |
| */ | |
| - | #include <stdarg.h> |
| - | #include <netdb.h> |
| - | #include <stdio.h> |
| - | |
| #include "libbb.h" | |
| - | |
| void bb_vherror_msg(const char *s, va_list p) | |
| { | |
| bb_verror_msg(s, p, hstrerror(h_errno)); | |
| @@ -7,12 +7,8 @@ | |
| * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | |
| */ | |
| - | #include <stdio.h> |
| - | #include <errno.h> |
| - | #include <string.h> |
| - | #include <stdlib.h> |
| - | #include <syslog.h> |
| #include "libbb.h" | |
| + | #include <syslog.h> |
| void bb_vinfo_msg(const char *s, va_list p) | |
| { | |
| @@ -7,10 +7,6 @@ | |
| * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | |
| */ | |
| - | #include <stdio.h> |
| - | #include <errno.h> |
| - | #include <string.h> |
| - | #include <stdlib.h> |
| #include "libbb.h" | |
| void bb_vperror_msg(const char *s, va_list p) | |