diff options
author | Simon Josefsson <simon@josefsson.org> | 2005-09-19 21:44:07 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2005-09-19 21:44:07 +0000 |
commit | 7a41cbda2779dd0827e406e62d2fbae90f666437 (patch) | |
tree | 96c4969b35858257b5b899b06a587a50efce338e /gl/m4/socklen.m4 | |
parent | d970a13905be32ce088a0c7135478be6fbdf1d14 (diff) | |
download | gnutls-7a41cbda2779dd0827e406e62d2fbae90f666437.tar.gz |
Update.
Diffstat (limited to 'gl/m4/socklen.m4')
-rw-r--r-- | gl/m4/socklen.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gl/m4/socklen.m4 b/gl/m4/socklen.m4 new file mode 100644 index 0000000000..c26a2813a4 --- /dev/null +++ b/gl/m4/socklen.m4 @@ -0,0 +1,21 @@ +# socklen.m4 serial 1 +dnl Copyright (C) 2005 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. + +dnl From Simon Josefsson. + +AC_DEFUN([gl_SOCKLEN_T], +[ + AC_CHECK_HEADERS_ONCE(sys/types.h sys/socket.h) + AC_CHECK_TYPE([socklen_t],, [AC_DEFINE([socklen_t], [int], + [Map `socklen_t' to `int' if it is missing.])], [ +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_SYS_SOCKET_H +# include <sys/socket.h> +#endif) +]) +]) |