From 6f7dc709ed7e403af224b0fbb91e9619629eb2ec Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 14 Jan 2006 19:45:02 +0000 Subject: make DODEBUG=y happy, update sysdeps/common/* copyright --- libc/string/generic/strnlen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/string/generic/strnlen.c') diff --git a/libc/string/generic/strnlen.c b/libc/string/generic/strnlen.c index 95e8a77be..c5da906ef 100644 --- a/libc/string/generic/strnlen.c +++ b/libc/string/generic/strnlen.c @@ -21,9 +21,11 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define _GNU_SOURCE #include #include +libc_hidden_proto(strnlen) libc_hidden_proto(abort) /* Find the length of S, but scan at most MAXLEN characters. If no @@ -158,5 +160,4 @@ size_t strnlen (const char *str, size_t maxlen) char_ptr = end_ptr; return char_ptr - str; } -libc_hidden_proto(strnlen) libc_hidden_def(strnlen) -- cgit v1.2.3