summaryrefslogtreecommitdiff
path: root/source3/include/kanji.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/kanji.h')
-rw-r--r--source3/include/kanji.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/include/kanji.h b/source3/include/kanji.h
index 528680d88a..5e8173ee14 100644
--- a/source3/include/kanji.h
+++ b/source3/include/kanji.h
@@ -108,6 +108,30 @@
extern char *(*_dos_to_unix)(char *str, BOOL overwrite);
extern char *(*_unix_to_dos)(char *str, BOOL overwrite);
+/*
+ * The following is needed for AIX systems that have
+ * their own #defines for strchr, strrchr, strstr
+ * and strtok.
+ */
+
+#ifdef strchr
+#undef strchr
+#endif /* strchr */
+
+#ifdef strrchr
+#undef strrchr
+#endif /* strrchr */
+
+#ifdef strstr
+#undef strstr
+#endif /* strstr */
+
+#ifdef strtok
+#undef strtok
+#endif /* strtok */
+
+/* Ensure we use our definitions. */
+
#define strchr sj_strchr
#define strrchr sj_strrchr
#define strstr sj_strstr