diff --git a/inc/decls.h b/inc/decls.h index c013a81..1de7cc6 100644 --- a/inc/decls.h +++ b/inc/decls.h @@ -13,6 +13,7 @@ #include #include #include +#include #include "intrinsics.h" #include "util.h" diff --git a/src/util.c b/src/util.c index 7c06fdc..1c6477d 100644 --- a/src/util.c +++ b/src/util.c @@ -57,7 +57,7 @@ size_t strnlen(const char *s, size_t maxlen) int strcmp(const char *s1, const char *s2) { - return strncmp(s1, s2, ~0); + return strncmp(s1, s2, INT_MAX); } int strncmp(const char *s1, const char *s2, size_t n)