From 6d7aed92f2715b3db4472b748fef06f1eaf6b30e Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 4 Jun 2008 14:02:56 +0000 Subject: This fixes a problem with the move of libc_hidden_proto to string.h. The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include . We then do not need to duplicate the libc_hidden_proto block in . --- libc/string/ffs.c | 1 - libc/string/strcasecmp.c | 1 - libc/string/strncasecmp.c | 1 - 3 files changed, 3 deletions(-) (limited to 'libc/string') diff --git a/libc/string/ffs.c b/libc/string/ffs.c index 0857a3220..f7d94ebf0 100644 --- a/libc/string/ffs.c +++ b/libc/string/ffs.c @@ -8,7 +8,6 @@ /* ffsl,ffsll */ #include "_string.h" -#include /* Experimentally off - libc_hidden_proto(ffs) */ diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c index 8a7836d82..f9852236b 100644 --- a/libc/string/strcasecmp.c +++ b/libc/string/strcasecmp.c @@ -6,7 +6,6 @@ */ #include "_string.h" -#include #include #include diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c index ab84be7ba..ed052fa21 100644 --- a/libc/string/strncasecmp.c +++ b/libc/string/strncasecmp.c @@ -6,7 +6,6 @@ */ #include "_string.h" -#include #include #include -- cgit v1.2.3