check that link() doesn't cause statinfo to be corrupted/reverted for
[arla.git] / cf / type-msghdr.m4
blob828249221307ff1fc62aed514002a8005a1faab5
1 dnl
2 dnl $Id$
3 dnl
5 dnl
6 dnl Check for struct msghdr
7 dnl
9 AC_DEFUN([AC_TYPE_MSGHDR], [
11 AC_CACHE_CHECK(for struct msghdr, ac_cv_struct_msghdr, [
12 AC_EGREP_HEADER([struct msghdr], sys/socket.h,
13 ac_cv_struct_msghdr=yes,
14 ac_cv_struct_msghdr=no)
16 if test "$ac_cv_struct_msghdr" = "yes"; then
17   AC_DEFINE(HAVE_STRUCT_MSGHDR, 1, [define if you have struct msghdr])