diff options
Diffstat (limited to 'gl/m4/errno_h.m4')
| -rw-r--r-- | gl/m4/errno_h.m4 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gl/m4/errno_h.m4 b/gl/m4/errno_h.m4 index b6050e5d..420d5bb3 100644 --- a/gl/m4/errno_h.m4 +++ b/gl/m4/errno_h.m4 | |||
| @@ -1,15 +1,21 @@ | |||
| 1 | # errno_h.m4 | 1 | # errno_h.m4 |
| 2 | # serial 14 | 2 | # serial 18 |
| 3 | dnl Copyright (C) 2004, 2006, 2008-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2004, 2006, 2008-2025 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | AC_PREREQ([2.61]) | 9 | AC_PREREQ([2.61]) |
| 9 | 10 | ||
| 10 | AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], | 11 | AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], |
| 11 | [ | 12 | [ |
| 12 | AC_REQUIRE([AC_PROG_CC]) | 13 | AC_REQUIRE([AC_PROG_CC]) |
| 14 | |||
| 15 | dnl Through the dependency on module extensions-aix, _LINUX_SOURCE_COMPAT | ||
| 16 | dnl gets defined already before this macro gets invoked. This persuades | ||
| 17 | dnl AIX 7.3 errno.h to assign ENOTEMPTY a value different than EEXIST. | ||
| 18 | |||
| 13 | AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ | 19 | AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ |
| 14 | AC_EGREP_CPP([booboo],[ | 20 | AC_EGREP_CPP([booboo],[ |
| 15 | #include <errno.h> | 21 | #include <errno.h> |
| @@ -64,6 +70,9 @@ booboo | |||
| 64 | #if !defined EILSEQ | 70 | #if !defined EILSEQ |
| 65 | booboo | 71 | booboo |
| 66 | #endif | 72 | #endif |
| 73 | #if !defined ESOCKTNOSUPPORT | ||
| 74 | booboo | ||
| 75 | #endif | ||
| 67 | ], | 76 | ], |
| 68 | [gl_cv_header_errno_h_complete=no], | 77 | [gl_cv_header_errno_h_complete=no], |
| 69 | [gl_cv_header_errno_h_complete=yes]) | 78 | [gl_cv_header_errno_h_complete=yes]) |
