summaryrefslogtreecommitdiffstats
path: root/libc/unistd/getsubopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/getsubopt.c')
-rw-r--r--libc/unistd/getsubopt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/unistd/getsubopt.c b/libc/unistd/getsubopt.c
index 682eb4bc4..bebfbc4ed 100644
--- a/libc/unistd/getsubopt.c
+++ b/libc/unistd/getsubopt.c
@@ -18,6 +18,8 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#define memchr __memchr
+
#include <stdlib.h>
#include <string.h>
@@ -48,7 +50,7 @@ int getsubopt(char **optionp, char *const *tokens, char **valuep)
/* Try to match the characters between *OPTIONP and VSTART against
one of the TOKENS. */
for (cnt = 0; tokens[cnt] != NULL; ++cnt)
- if (memcmp (*optionp, tokens[cnt], vstart - *optionp) == 0
+ if (__memcmp (*optionp, tokens[cnt], vstart - *optionp) == 0
&& tokens[cnt][vstart - *optionp] == '\0')
{
/* We found the current option in TOKENS. */