diff options
Diffstat (limited to 'libc/string/generic/strnlen.c')
-rw-r--r-- | libc/string/generic/strnlen.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <string.h> #include <stdlib.h> +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) |