diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2020-12-30 23:41:30 -0600 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-04-09 21:45:11 +0200 |
commit | df48cc8404f3fc2976c9d70c9aeefda171432cf9 (patch) | |
tree | db84c13691ab5fa3fa0f7ef67b4e8fc1787b8f04 /Src/zsh_system.h | |
parent | 62e86515e79e57e791bc9f5ed815e8020d1dcf6b (diff) | |
download | zsh-df48cc8404f3fc2976c9d70c9aeefda171432cf9.tar.gz zsh-df48cc8404f3fc2976c9d70c9aeefda171432cf9.tar.xz zsh-df48cc8404f3fc2976c9d70c9aeefda171432cf9.zip |
47785: remove deprecated autoconf functions
STDC_HEADERS and TIME_WITH_SYS_TIME are deprecated.
Diffstat (limited to 'Src/zsh_system.h')
-rw-r--r-- | Src/zsh_system.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/Src/zsh_system.h b/Src/zsh_system.h index 161b073b4..6f4efce96 100644 --- a/Src/zsh_system.h +++ b/Src/zsh_system.h @@ -235,16 +235,8 @@ char *alloca _((size_t)); # include <errno.h> #endif -#ifdef TIME_WITH_SYS_TIME -# include <sys/time.h> -# include <time.h> -#else -# ifdef HAVE_SYS_TIME_H -# include <sys/time.h> -# else -# include <time.h> -# endif -#endif +#include <sys/time.h> +#include <time.h> /* This is needed by some old SCO unices */ #if !defined(HAVE_STRUCT_TIMEZONE) && !defined(ZSH_OOT_MODULE) @@ -279,16 +271,7 @@ struct timespec { # include <sys/times.h> #endif -#if STDC_HEADERS || HAVE_STRING_H # include <string.h> -/* An ANSI string.h and pre-ANSI memory.h might conflict. */ -# if !STDC_HEADERS && HAVE_MEMORY_H -# include <memory.h> -# endif /* not STDC_HEADERS and HAVE_MEMORY_H */ -#else /* not STDC_HEADERS and not HAVE_STRING_H */ -# include <strings.h> -/* memory.h and strings.h conflict on some systems. */ -#endif /* not STDC_HEADERS and not HAVE_STRING_H */ #ifdef HAVE_LOCALE_H # include <locale.h> |