}
#endif /* not HAVE_STRSTR */
+#ifndef HAVE_STRPBRK
+/* Find the first ocurrence in S of any character in ACCEPT. */
+char *
+strpbrk (const char *s, const char *accept)
+{
+ while (*s != '\0')
+ {
+ const char *a = accept;
+ while (*a != '\0')
+ if (*a++ == *s)
+ return (char *) s;
+ ++s;
+ }
+
+ return 0;
+}
+#endif /* HAVE_STRPBRK */
+
#ifndef HAVE_MKTIME
/* From GNU libc 2.0. */
return strptime_internal (buf, format, tm, &decided);
}
#endif /* not HAVE_STRPTIME */
+
+
+#ifndef HAVE_USLEEP
+/* A simple usleep implementation based on select(). This will
+ probably not work on Windows. */
+
+int
+usleep (unsigned long usec)
+{
+ struct timeval tm;
+ tm.tv_sec = 0;
+ tm.tv_usec = usec;
+ select (0, NULL, NULL, NULL, &tm);
+ return 0;
+}
+#endif /* not HAVE_USLEEP */