diff options
| author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-12 13:27:55 +0000 |
|---|---|---|
| committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-12 13:27:55 +0000 |
| commit | 46b85d86c303c7a7bac4ffd4b07ddd67ccc6686d (patch) | |
| tree | 98fdcda294822aa89f2e7bad386d53dac71e2ff7 | |
| parent | 4e36ee1b92d6fac155e64172cffca124a4522db5 (diff) | |
| download | busybox-w32-46b85d86c303c7a7bac4ffd4b07ddd67ccc6686d.tar.gz busybox-w32-46b85d86c303c7a7bac4ffd4b07ddd67ccc6686d.tar.bz2 busybox-w32-46b85d86c303c7a7bac4ffd4b07ddd67ccc6686d.zip | |
- small trivia to be gentle to gcc-2.95.x which had no va_copy but only __va_copy.
git-svn-id: svn://busybox.net/trunk/busybox@16107 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | include/platform.h | 8 | ||||
| -rw-r--r-- | libbb/verror_msg.c | 6 | ||||
| -rw-r--r-- | libbb/vherror_msg.c | 5 | ||||
| -rw-r--r-- | libbb/vinfo_msg.c | 6 | ||||
| -rw-r--r-- | libbb/vperror_msg.c | 4 |
5 files changed, 10 insertions, 19 deletions
diff --git a/include/platform.h b/include/platform.h index ca6f3634f..fdaf50920 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -75,6 +75,14 @@ | |||
| 75 | # endif | 75 | # endif |
| 76 | #endif | 76 | #endif |
| 77 | 77 | ||
| 78 | /* gcc-2.95 had no va_copy but only __va_copy. */ | ||
| 79 | #if !__GNUC_PREREQ (3,0) | ||
| 80 | # include <stdarg.h> | ||
| 81 | # if !defined va_copy && defined __va_copy | ||
| 82 | # define va_copy(d,s) __va_copy((d),(s)) | ||
| 83 | # endif | ||
| 84 | #endif | ||
| 85 | |||
| 78 | /* ---- Endian Detection ------------------------------------ */ | 86 | /* ---- Endian Detection ------------------------------------ */ |
| 79 | 87 | ||
| 80 | #if (defined __digital__ && defined __unix__) | 88 | #if (defined __digital__ && defined __unix__) |
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index 988a7a293..557b3290a 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c | |||
| @@ -7,12 +7,8 @@ | |||
| 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <stdio.h> | ||
| 11 | #include <errno.h> | ||
| 12 | #include <string.h> | ||
| 13 | #include <stdlib.h> | ||
| 14 | #include <syslog.h> | ||
| 15 | #include "libbb.h" | 10 | #include "libbb.h" |
| 11 | #include <syslog.h> | ||
| 16 | 12 | ||
| 17 | int logmode = LOGMODE_STDIO; | 13 | int logmode = LOGMODE_STDIO; |
| 18 | const char *msg_eol = "\n"; | 14 | const char *msg_eol = "\n"; |
diff --git a/libbb/vherror_msg.c b/libbb/vherror_msg.c index 7d9fc432a..04446a090 100644 --- a/libbb/vherror_msg.c +++ b/libbb/vherror_msg.c | |||
| @@ -7,13 +7,8 @@ | |||
| 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <stdarg.h> | ||
| 11 | #include <netdb.h> | ||
| 12 | #include <stdio.h> | ||
| 13 | |||
| 14 | #include "libbb.h" | 10 | #include "libbb.h" |
| 15 | 11 | ||
| 16 | |||
| 17 | void bb_vherror_msg(const char *s, va_list p) | 12 | void bb_vherror_msg(const char *s, va_list p) |
| 18 | { | 13 | { |
| 19 | bb_verror_msg(s, p, hstrerror(h_errno)); | 14 | bb_verror_msg(s, p, hstrerror(h_errno)); |
diff --git a/libbb/vinfo_msg.c b/libbb/vinfo_msg.c index 613b013cd..fa2798625 100644 --- a/libbb/vinfo_msg.c +++ b/libbb/vinfo_msg.c | |||
| @@ -7,12 +7,8 @@ | |||
| 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <stdio.h> | ||
| 11 | #include <errno.h> | ||
| 12 | #include <string.h> | ||
| 13 | #include <stdlib.h> | ||
| 14 | #include <syslog.h> | ||
| 15 | #include "libbb.h" | 10 | #include "libbb.h" |
| 11 | #include <syslog.h> | ||
| 16 | 12 | ||
| 17 | void bb_vinfo_msg(const char *s, va_list p) | 13 | void bb_vinfo_msg(const char *s, va_list p) |
| 18 | { | 14 | { |
diff --git a/libbb/vperror_msg.c b/libbb/vperror_msg.c index 70fd671e3..c3f79c23b 100644 --- a/libbb/vperror_msg.c +++ b/libbb/vperror_msg.c | |||
| @@ -7,10 +7,6 @@ | |||
| 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <stdio.h> | ||
| 11 | #include <errno.h> | ||
| 12 | #include <string.h> | ||
| 13 | #include <stdlib.h> | ||
| 14 | #include "libbb.h" | 10 | #include "libbb.h" |
| 15 | 11 | ||
| 16 | void bb_vperror_msg(const char *s, va_list p) | 12 | void bb_vperror_msg(const char *s, va_list p) |
