diff options
author | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 23:49:18 +0100 |
---|---|---|
committer | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 23:49:18 +0100 |
commit | a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7 (patch) | |
tree | 8effe94c57b2f9796ba36090b07551baa8f1e1cb /gl/m4/socklen.m4 | |
parent | ca3d59cd6918c9e2739e783b721d4c1122640fd3 (diff) | |
parent | c07206f2ccc2356aa74bc6813a94c2190017d44e (diff) | |
download | monitoring-plugins-a0d4277.tar.gz |
Merge remote-tracking branch 'origin/master' into feature_check_disk_add_ignore_missing_option
Diffstat (limited to 'gl/m4/socklen.m4')
-rw-r--r-- | gl/m4/socklen.m4 | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gl/m4/socklen.m4 b/gl/m4/socklen.m4 index e3efd6ef..1c63a853 100644 --- a/gl/m4/socklen.m4 +++ b/gl/m4/socklen.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # socklen.m4 serial 10 | 1 | # socklen.m4 serial 11 |
2 | dnl Copyright (C) 2005-2007, 2009-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2005-2007, 2009-2023 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -15,8 +15,8 @@ dnl So we have to test to find something that will work. | |||
15 | AC_DEFUN([gl_TYPE_SOCKLEN_T], | 15 | AC_DEFUN([gl_TYPE_SOCKLEN_T], |
16 | [AC_REQUIRE([gl_CHECK_SOCKET_HEADERS])dnl | 16 | [AC_REQUIRE([gl_CHECK_SOCKET_HEADERS])dnl |
17 | AC_CHECK_TYPE([socklen_t], , | 17 | AC_CHECK_TYPE([socklen_t], , |
18 | [AC_MSG_CHECKING([for socklen_t equivalent]) | 18 | [AC_CACHE_CHECK([for socklen_t equivalent], |
19 | AC_CACHE_VAL([gl_cv_socklen_t_equiv], | 19 | [gl_cv_socklen_t_equiv], |
20 | [# Systems have either "struct sockaddr *" or | 20 | [# Systems have either "struct sockaddr *" or |
21 | # "void *" as the second argument to getpeername | 21 | # "void *" as the second argument to getpeername |
22 | gl_cv_socklen_t_equiv= | 22 | gl_cv_socklen_t_equiv= |
@@ -34,11 +34,10 @@ AC_DEFUN([gl_TYPE_SOCKLEN_T], | |||
34 | done | 34 | done |
35 | test "$gl_cv_socklen_t_equiv" != "" && break | 35 | test "$gl_cv_socklen_t_equiv" != "" && break |
36 | done | 36 | done |
37 | ]) | 37 | if test "$gl_cv_socklen_t_equiv" = ""; then |
38 | if test "$gl_cv_socklen_t_equiv" = ""; then | 38 | AC_MSG_ERROR([Cannot find a type to use in place of socklen_t]) |
39 | AC_MSG_ERROR([Cannot find a type to use in place of socklen_t]) | 39 | fi |
40 | fi | 40 | ]) |
41 | AC_MSG_RESULT([$gl_cv_socklen_t_equiv]) | ||
42 | AC_DEFINE_UNQUOTED([socklen_t], [$gl_cv_socklen_t_equiv], | 41 | AC_DEFINE_UNQUOTED([socklen_t], [$gl_cv_socklen_t_equiv], |
43 | [type to use in place of socklen_t if not defined])], | 42 | [type to use in place of socklen_t if not defined])], |
44 | [gl_SOCKET_HEADERS])]) | 43 | [gl_SOCKET_HEADERS])]) |