summaryrefslogtreecommitdiff
path: root/src/common/strlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/strlib.h')
-rw-r--r--src/common/strlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/strlib.h b/src/common/strlib.h
index f4ee7074b..038eea1c6 100644
--- a/src/common/strlib.h
+++ b/src/common/strlib.h
@@ -11,6 +11,11 @@ char* jstrescape (char* pt);
char* jstrescapecpy (char* pt,char* spt);
int jmemescapecpy (char* pt,char* spt, int size);
+#if !defined(HAVE_mit_thread) && !defined(HAVE_STRTOK_R)
+#define strtok_r(s,delim,save_ptr) athena_strtok_r(s,delim,save_ptr)
+char *athena_strtok_r (char *s, const char *delim, char **save_ptr);
+#endif
+
// custom functions
int remove_control_chars(unsigned char *);
char *trim(char *str, const char *delim);