From: Jonas 'Sortie' Termansen Date: Fri, 29 Aug 2014 16:42:34 +0000 (-0700) Subject: autoconf: check for struct itimerval X-Git-Tag: v2.2.0-rc0~67^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6441090cf234b88c2fdbb9cd754714108fd57755?ds=inline;hp=--cc autoconf: check for struct itimerval The Makefile has provisions for this case, so let's detect it in the configure script as well. Signed-off-by: Jonas 'Sortie' Termansen Signed-off-by: Jacob Keller Signed-off-by: Junio C Hamano --- 6441090cf234b88c2fdbb9cd754714108fd57755 diff --git a/configure.ac b/configure.ac index 4b1ae7c3c9..652bfdddb2 100644 --- a/configure.ac +++ b/configure.ac @@ -746,6 +746,14 @@ case $ac_cv_type_socklen_t in esac GIT_CONF_SUBST([SOCKLEN_T]) +# +# Define NO_STRUCT_ITIMERVAL if you don't have struct itimerval. +AC_CHECK_TYPES([struct itimerval], +[NO_STRUCT_ITIMERVAL=], +[NO_STRUCT_ITIMERVAL=UnfortunatelyYes], +[#include ]) +GIT_CONF_SUBST([NO_STRUCT_ITIMERVAL]) +# # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent. AC_CHECK_MEMBER(struct dirent.d_ino, [NO_D_INO_IN_DIRENT=],