diff options
author | John F. Carr <jfc@mit.edu> | 1991-06-20 10:38:19 +0000 |
---|---|---|
committer | John F. Carr <jfc@mit.edu> | 1991-06-20 10:38:19 +0000 |
commit | 725ee4efb5dfdc1bc5122c58d6b6ba6582fc1b47 (patch) | |
tree | f5716417be14e524d81119c2e3e59e28dac6ac82 /h | |
parent | 7996a85a7e9bc45f8f182c941d6ed95256591e9b (diff) |
POSIX and SYSV use <string.h>.
Diffstat (limited to 'h')
-rw-r--r-- | h/zephyr/zephyr_internal.h | 6 |
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 |