From 0e2e950ede984fc0842d2c711d6d1fca69259e5b Mon Sep 17 00:00:00 2001
From: Martin Nilsson <nilsson@opera.com>
Date: Wed, 3 Sep 2014 19:29:03 +0200
Subject: [PATCH] This fallback never worked.

---
 src/configure.in | 1 -
 src/port.c       | 2 +-
 src/port.h       | 7 ++-----
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index c8c06274f2..b870ebfc76 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -4579,7 +4579,6 @@ AC_CHECK_FUNCS( \
  strcasecmp \
  strnlen \
  strchr \
- strcspn \
  strerror \
  times \
  tzset \
diff --git a/src/port.c b/src/port.c
index ccb00c911a..9baeb5a505 100644
--- a/src/port.c
+++ b/src/port.c
@@ -560,7 +560,7 @@ void own_gethrtime_init()
        p = STRSTR(buf, "\ncpu MHz");
        if (p) {
 	 p += sizeof("\ncpu MHz");
-	 p += STRCSPN(p, "0123456789\n");
+	 p += strcspn(p, "0123456789\n");
 	 if (*p != '\n') {
 	   long long hz = 0;
 
diff --git a/src/port.h b/src/port.h
index 29a2156d9e..c472f7684b 100644
--- a/src/port.h
+++ b/src/port.h
@@ -155,11 +155,8 @@ void GETTIMEOFDAY(struct timeval *t);
 #define HAVE_STRTOD 1
 #define STRTOD strtod
 
-#ifndef HAVE_STRCSPN
-int STRCSPN(const char *s,const char * set);
-#else
-#  define STRCSPN strcspn
-#endif
+#define HAVE_STRCSPN 1
+#define STRCSPN strcspn
 
 #ifndef HAVE_STRCASECMP
 PMOD_EXPORT int STRCASECMP(const char *a,const char *b);
-- 
GitLab