summaryrefslogtreecommitdiff
path: root/lib/gl/m4/socklen.m4
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-09-11 19:44:53 +0200
committerSimon Josefsson <simon@josefsson.org>2009-09-11 19:44:53 +0200
commit21ec522b866fbd62db2c083e2609353df6e3d99b (patch)
treec4068ffa127cfe705feccfa40760a5267f1af7f9 /lib/gl/m4/socklen.m4
parent4e60ed0235e413a199d1479e2bc78a9abedbb4d8 (diff)
downloadgnutls-21ec522b866fbd62db2c083e2609353df6e3d99b.tar.gz
Update gnulib files.
Diffstat (limited to 'lib/gl/m4/socklen.m4')
-rw-r--r--lib/gl/m4/socklen.m416
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/gl/m4/socklen.m4 b/lib/gl/m4/socklen.m4
index b755757be4..80ed5135fd 100644
--- a/lib/gl/m4/socklen.m4
+++ b/lib/gl/m4/socklen.m4
@@ -1,5 +1,5 @@
-# socklen.m4 serial 6
-dnl Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+# socklen.m4 serial 7
+dnl Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -25,13 +25,13 @@ AC_DEFUN([gl_TYPE_SOCKLEN_T],
gl_cv_socklen_t_equiv=
for arg2 in "struct sockaddr" void; do
for t in int size_t "unsigned int" "long int" "unsigned long int"; do
- AC_TRY_COMPILE(
- [#include <sys/types.h>
- #include <sys/socket.h>
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[#include <sys/types.h>
+ #include <sys/socket.h>
- int getpeername (int, $arg2 *, $t *);],
- [$t len;
- getpeername (0, 0, &len);],
+ int getpeername (int, $arg2 *, $t *);]],
+ [[$t len;
+ getpeername (0, 0, &len);]])],
[gl_cv_socklen_t_equiv="$t"])
test "$gl_cv_socklen_t_equiv" != "" && break
done