From 58f03486fe2b30e939b1856c65b9728f69809d58 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 18 Jul 2005 01:59:20 +0000 Subject: [PATCH] 2005-06-14 Ulrich Drepper [BZ #1087] * include/string.h: Use libc_hidden_proto for strnlen. * sysdeps/generic/strnlen.c: Add libc_hidden_def. --- include/string.h | 1 + sysdeps/generic/strnlen.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/string.h b/include/string.h index 738dd8e27c8..532d5ed3330 100644 --- a/include/string.h +++ b/include/string.h @@ -96,6 +96,7 @@ libc_hidden_builtin_proto (strcmp) libc_hidden_builtin_proto (strcpy) libc_hidden_builtin_proto (strcspn) libc_hidden_builtin_proto (strlen) +libc_hidden_builtin_proto (strnlen) libc_hidden_builtin_proto (strncmp) libc_hidden_builtin_proto (strncpy) libc_hidden_builtin_proto (strpbrk) diff --git a/sysdeps/generic/strnlen.c b/sysdeps/generic/strnlen.c index c83520e3495..6e526bbebac 100644 --- a/sysdeps/generic/strnlen.c +++ b/sysdeps/generic/strnlen.c @@ -158,3 +158,4 @@ __strnlen (const char *str, size_t maxlen) return char_ptr - str; } weak_alias (__strnlen, strnlen) +libc_hidden_def (strnlen) -- 2.47.2