diff options
| author | Lorenz Kästle <lorenz.kaestle@netways.de> | 2023-03-09 11:03:48 +0100 |
|---|---|---|
| committer | Lorenz Kästle <lorenz.kaestle@netways.de> | 2023-03-09 11:03:48 +0100 |
| commit | d0edb72a0c9bc1a28197ab4566928f7ee63a6d43 (patch) | |
| tree | 6d524fb16d2dd1aa9f2d98529ef1de7a39f52700 /gl/m4/gethostname.m4 | |
| parent | 9fdc82f0543c6e2891c7079f70297f92e8ef4619 (diff) | |
| parent | 269718094177fb8a7e3d3005d1310495009fe8c4 (diff) | |
| download | monitoring-plugins-d0edb72.tar.gz | |
Merge branch 'master' into RincewindsHat-patch-1
Diffstat (limited to 'gl/m4/gethostname.m4')
| -rw-r--r-- | gl/m4/gethostname.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gl/m4/gethostname.m4 b/gl/m4/gethostname.m4 index 7413f9e3..63f5f636 100644 --- a/gl/m4/gethostname.m4 +++ b/gl/m4/gethostname.m4 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # gethostname.m4 serial 13 | 1 | # gethostname.m4 serial 15 |
| 2 | dnl Copyright (C) 2002, 2008-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2008-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. |
| @@ -48,7 +48,7 @@ AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [ | |||
| 48 | dnl - On most Unix systems, use MAXHOSTNAMELEN from <sys/param.h> instead. | 48 | dnl - On most Unix systems, use MAXHOSTNAMELEN from <sys/param.h> instead. |
| 49 | dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from <netdb.h> instead. | 49 | dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from <netdb.h> instead. |
| 50 | dnl - On mingw, use 256, because | 50 | dnl - On mingw, use 256, because |
| 51 | dnl <http://msdn.microsoft.com/en-us/library/ms738527.aspx> says: | 51 | dnl <https://docs.microsoft.com/en-us/windows/desktop/api/winsock/nf-winsock-gethostname> says: |
| 52 | dnl "if a buffer of 256 bytes is passed in the name parameter and | 52 | dnl "if a buffer of 256 bytes is passed in the name parameter and |
| 53 | dnl the namelen parameter is set to 256, the buffer size will always | 53 | dnl the namelen parameter is set to 256, the buffer size will always |
| 54 | dnl be adequate." | 54 | dnl be adequate." |
| @@ -74,7 +74,7 @@ lucky | |||
| 74 | dnl mingw. | 74 | dnl mingw. |
| 75 | gl_cv_decl_HOST_NAME_MAX=256 | 75 | gl_cv_decl_HOST_NAME_MAX=256 |
| 76 | else | 76 | else |
| 77 | _AC_COMPUTE_INT([MAXHOSTNAMELEN], [gl_cv_decl_HOST_NAME_MAX], [ | 77 | AC_COMPUTE_INT([gl_cv_decl_HOST_NAME_MAX], [MAXHOSTNAMELEN], [ |
| 78 | #include <sys/types.h> | 78 | #include <sys/types.h> |
| 79 | #if HAVE_SYS_PARAM_H | 79 | #if HAVE_SYS_PARAM_H |
| 80 | # include <sys/param.h> | 80 | # include <sys/param.h> |
