summaryrefslogtreecommitdiffstats
path: root/gl/m4/fcntl_h.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/fcntl_h.m4')
-rw-r--r--gl/m4/fcntl_h.m49
1 files changed, 6 insertions, 3 deletions
diff --git a/gl/m4/fcntl_h.m4 b/gl/m4/fcntl_h.m4
index b69f7a0c..946a0bd6 100644
--- a/gl/m4/fcntl_h.m4
+++ b/gl/m4/fcntl_h.m4
@@ -1,9 +1,10 @@
1# fcntl_h.m4 1# fcntl_h.m4
2# serial 20 2# serial 21
3dnl Copyright (C) 2006-2007, 2009-2024 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
7 8
8# Configure fcntl.h. 9# Configure fcntl.h.
9 10
@@ -25,7 +26,7 @@ AC_DEFUN_ONCE([gl_FCNTL_H],
25 dnl corresponding gnulib module is not in use, if it is not common 26 dnl corresponding gnulib module is not in use, if it is not common
26 dnl enough to be declared everywhere. 27 dnl enough to be declared everywhere.
27 gl_WARN_ON_USE_PREPARE([[#include <fcntl.h> 28 gl_WARN_ON_USE_PREPARE([[#include <fcntl.h>
28 ]], [fcntl openat]) 29 ]], [fcntl openat openat2])
29]) 30])
30 31
31# gl_FCNTL_MODULE_INDICATOR([modulename]) 32# gl_FCNTL_MODULE_INDICATOR([modulename])
@@ -52,6 +53,7 @@ AC_DEFUN([gl_FCNTL_H_REQUIRE_DEFAULTS],
52 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NONBLOCKING]) 53 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NONBLOCKING])
53 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPEN]) 54 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPEN])
54 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT]) 55 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT])
56 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT2])
55 dnl Support Microsoft deprecated alias function names by default. 57 dnl Support Microsoft deprecated alias function names by default.
56 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CREAT], [1]) 58 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CREAT], [1])
57 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_OPEN], [1]) 59 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_OPEN], [1])
@@ -65,6 +67,7 @@ AC_DEFUN([gl_FCNTL_H_DEFAULTS],
65 dnl Assume proper GNU behavior unless another module says otherwise. 67 dnl Assume proper GNU behavior unless another module says otherwise.
66 HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL]) 68 HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL])
67 HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT]) 69 HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT])
70 HAVE_OPENAT2=0; AC_SUBST([HAVE_OPENAT2])
68 REPLACE_CREAT=0; AC_SUBST([REPLACE_CREAT]) 71 REPLACE_CREAT=0; AC_SUBST([REPLACE_CREAT])
69 REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL]) 72 REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL])
70 REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN]) 73 REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN])