summaryrefslogtreecommitdiff
path: root/libc/string/generic/strchrnul.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/generic/strchrnul.c')
-rw-r--r--libc/string/generic/strchrnul.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/string/generic/strchrnul.c b/libc/string/generic/strchrnul.c
index eccdba247..3616341a7 100644
--- a/libc/string/generic/strchrnul.c
+++ b/libc/string/generic/strchrnul.c
@@ -21,9 +21,11 @@
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(strchrnul)
libc_hidden_proto(abort)
#include "memcopy.h"
@@ -163,5 +165,4 @@ char *strchrnul (const char *s, int c_in)
/* This should never happen. */
return NULL;
}
-libc_hidden_proto(strchrnul)
libc_hidden_def(strchrnul)