svn commit: trunk/busybox: include libbb
aldot at busybox.net
aldot at busybox.net
Tue Sep 12 13:27:56 UTC 2006
Author: aldot
Date: 2006-09-12 06:27:55 -0700 (Tue, 12 Sep 2006)
New Revision: 16107
Log:
- small trivia to be gentle to gcc-2.95.x which had no va_copy but only __va_copy.
Modified:
trunk/busybox/include/platform.h
trunk/busybox/libbb/verror_msg.c
trunk/busybox/libbb/vherror_msg.c
trunk/busybox/libbb/vinfo_msg.c
trunk/busybox/libbb/vperror_msg.c
Changeset:
Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h 2006-09-12 13:25:16 UTC (rev 16106)
+++ trunk/busybox/include/platform.h 2006-09-12 13:27:55 UTC (rev 16107)
@@ -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__)
Modified: trunk/busybox/libbb/verror_msg.c
===================================================================
--- trunk/busybox/libbb/verror_msg.c 2006-09-12 13:25:16 UTC (rev 16106)
+++ trunk/busybox/libbb/verror_msg.c 2006-09-12 13:27:55 UTC (rev 16107)
@@ -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";
Modified: trunk/busybox/libbb/vherror_msg.c
===================================================================
--- trunk/busybox/libbb/vherror_msg.c 2006-09-12 13:25:16 UTC (rev 16106)
+++ trunk/busybox/libbb/vherror_msg.c 2006-09-12 13:27:55 UTC (rev 16107)
@@ -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));
Modified: trunk/busybox/libbb/vinfo_msg.c
===================================================================
--- trunk/busybox/libbb/vinfo_msg.c 2006-09-12 13:25:16 UTC (rev 16106)
+++ trunk/busybox/libbb/vinfo_msg.c 2006-09-12 13:27:55 UTC (rev 16107)
@@ -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)
{
Modified: trunk/busybox/libbb/vperror_msg.c
===================================================================
--- trunk/busybox/libbb/vperror_msg.c 2006-09-12 13:25:16 UTC (rev 16106)
+++ trunk/busybox/libbb/vperror_msg.c 2006-09-12 13:27:55 UTC (rev 16107)
@@ -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)
More information about the busybox-cvs
mailing list