Skip to content

Commit 6441090

Browse files
sortiegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jacob Keller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 981ff52 commit 6441090

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,14 @@ case $ac_cv_type_socklen_t in
746746
esac
747747
GIT_CONF_SUBST([SOCKLEN_T])
748748

749+
#
750+
# Define NO_STRUCT_ITIMERVAL if you don't have struct itimerval.
751+
AC_CHECK_TYPES([struct itimerval],
752+
[NO_STRUCT_ITIMERVAL=],
753+
[NO_STRUCT_ITIMERVAL=UnfortunatelyYes],
754+
[#include <sys/time.h>])
755+
GIT_CONF_SUBST([NO_STRUCT_ITIMERVAL])
756+
#
749757
# Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
750758
AC_CHECK_MEMBER(struct dirent.d_ino,
751759
[NO_D_INO_IN_DIRENT=],

0 commit comments

Comments
 (0)