From 03d647cdefbea26f5fb29bd9cf074fc43b6b8bda Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 05:28:08 +0000 Subject: [PATCH] opkg: attached patch fixes build failures with gcc 4.3.2. patch by Enrico Scholz -- thanks! git-svn-id: http://opkg.googlecode.com/svn/trunk@151 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libbb/libbb.h | 4 ---- libbb/xfuncs.c | 7 ------- 2 files changed, 11 deletions(-) diff --git a/libbb/libbb.h b/libbb/libbb.h index 0385d55..860dacd 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -345,8 +345,4 @@ extern const char * const can_not_create_raw_socket; #define fork vfork #endif -/* Stupid gcc always includes its own builtin strlen()... */ -extern size_t xstrlen(const char *string); -#define strlen(x) xstrlen(x) - #endif /* __LIBBB_H__ */ diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index ee90e60..57c6980 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -85,13 +85,6 @@ FILE *xfopen(const char *path, const char *mode) return fp; } -/* Stupid gcc always includes its own builtin strlen()... */ -#undef strlen -size_t xstrlen(const char *string) -{ - return(strlen(string)); -} - /* END CODE */ /* Local Variables: -- 2.25.1