提交 6441090c 编写于 作者: J Jonas 'Sortie' Termansen 提交者: Junio C Hamano

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: NJonas 'Sortie' Termansen <sortie@maxsi.org>
Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 981ff520
......@@ -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 <sys/time.h>])
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=],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册