mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
DEVEL15-socklen-t-check-20090316
LICENSE IPL10 verify we have socklen_t and if not, get it (cherry picked from commit 2d683a880bf5f30db22862f0f6add14142dbcf9a)
This commit is contained in:
parent
9236aec367
commit
1195efd83b
@ -323,6 +323,7 @@ dnl Various compiler setup.
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_SIGNAL
|
||||
AC_TYPE_SOCKLEN_T
|
||||
AC_CHECK_TYPES(sig_t, , ,
|
||||
[#include <sys/types.h>
|
||||
#include <signal.h> ])
|
||||
|
18
src/cf/socklen.m4
Normal file
18
src/cf/socklen.m4
Normal file
@ -0,0 +1,18 @@
|
||||
AC_DEFUN([AC_TYPE_SOCKLEN_T],
|
||||
[
|
||||
AC_CACHE_CHECK([for socklen_t],
|
||||
ac_cv_type_socklen_t, [
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
],
|
||||
[
|
||||
socklen_t len = 42; return 0;
|
||||
],
|
||||
ac_cv_type_socklen_t="yes", ac_cv_type_socklen_t="no")
|
||||
])
|
||||
|
||||
if test "x$ac_cv_type_socklen_t" = "xno"; then
|
||||
AC_DEFINE(socklen_t, int, [the type of the last argument to getsockopt etc])
|
||||
fi
|
||||
])
|
Loading…
x
Reference in New Issue
Block a user