summaryrefslogtreecommitdiff
path: root/lib/strnlen.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-06 15:45:30 +0000
committerJim Meyering <jim@meyering.net>2000-05-06 15:45:30 +0000
commita83332dcd20d57e4fae5b655f396ad1215b64f58 (patch)
tree94c8e8d8c3b1b87d749c3ba9ae1e4b83fe88cf88 /lib/strnlen.c
parent20d55109b5719c3db4aa3510063baa716d35fe92 (diff)
downloadcoreutils-a83332dcd20d57e4fae5b655f396ad1215b64f58.tar.xz
Undefine __strnlen and strnlen.
[!weak_alias]: Define __strnlen to strnlen.
Diffstat (limited to 'lib/strnlen.c')
-rw-r--r--lib/strnlen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/strnlen.c b/lib/strnlen.c
index a2fcf73d7..89f818526 100644
--- a/lib/strnlen.c
+++ b/lib/strnlen.c
@@ -19,6 +19,13 @@
#include <string.h>
+#undef __strnlen
+#undef strnlen
+
+#ifndef weak_alias
+# define __strnlen strnlen
+#endif
+
/* Find the length of STRING, but scan at most MAXLEN characters.
If no '\0' terminator is found in that many characters, return MAXLEN. */