summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
Diffstat (limited to 'h')
-rw-r--r--h/zephyr/zephyr_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/h/zephyr/zephyr_internal.h b/h/zephyr/zephyr_internal.h
index b8b1af4..2d28b8e 100644
--- a/h/zephyr/zephyr_internal.h
+++ b/h/zephyr/zephyr_internal.h
@@ -16,7 +16,13 @@
#define __ZINTERNAL_H__
#include <zephyr/zephyr.h>
+#if defined(_POSIX_SOURCE) || defined(SYSV)
+#include <string.h>
+#define index strchr
+#define rindex strrchr
+#else
#include <strings.h> /* for strcpy, etc. */
+#endif
#include <sys/types.h> /* for time_t, uid_t, etc */
#ifdef lint
#include <sys/uio.h> /* to make lint shut up about