diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7644ebe52..53c30c2cf 100644 --- a/configure.ac +++ b/configure.ac @@ -1113,6 +1113,14 @@ zsh_TYPE_EXISTS([ #endif ], struct timezone) +dnl Check for struct timespec since POSIX only gained it in 2008 +zsh_TYPE_EXISTS([ +#define _GNU_SOURCE 1 +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif +], struct timespec) + dnl Check for utmp structures, for watch zsh_TYPE_EXISTS([ #ifdef HAVE_SYS_TYPES_H |