summaryrefslogtreecommitdiff
path: root/lib/rawmemchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rawmemchr.c')
-rw-r--r--lib/rawmemchr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rawmemchr.c b/lib/rawmemchr.c
index 655cc8ec9..ef356895e 100644
--- a/lib/rawmemchr.c
+++ b/lib/rawmemchr.c
@@ -19,6 +19,9 @@
/* Specification. */
#include <string.h>
+/* A function definition is only needed if HAVE_RAWMEMCHR is not defined. */
+#if !HAVE_RAWMEMCHR
+
/* Find the first occurrence of C in S. */
void *
rawmemchr (const void *s, int c_in)
@@ -134,3 +137,5 @@ rawmemchr (const void *s, int c_in)
char_ptr++;
return (void *) char_ptr;
}
+
+#endif