diff options
Diffstat (limited to 'libc/inet/getproto.c')
-rw-r--r-- | libc/inet/getproto.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c index c9f35f149..e7221f3a2 100644 --- a/libc/inet/getproto.c +++ b/libc/inet/getproto.c @@ -51,6 +51,8 @@ ** SUCH DAMAGE. */ +#define strpbrk __strpbrk + #define __FORCE_GLIBC #define _GNU_SOURCE #include <features.h> @@ -211,10 +213,10 @@ int getprotobyname_r(const char *name, LOCK; setprotoent(proto_stayopen); while (!(ret=getprotoent_r(result_buf, buf, buflen, result))) { - if (strcmp(result_buf->p_name, name) == 0) + if (__strcmp(result_buf->p_name, name) == 0) break; for (cp = result_buf->p_aliases; *cp != 0; cp++) - if (strcmp(*cp, name) == 0) + if (__strcmp(*cp, name) == 0) goto found; } found: |