[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux
From: |
Bruno Haible |
Subject: |
Re: make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux |
Date: |
Tue, 14 Apr 2009 21:31:14 +0200 |
User-agent: |
KMail/1.9.9 |
Ben Pfaff wrote:
> >> Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
> >
> > Looks correct to me.
>
> Thanks, I pushed this to master.
Fine. I'm adding a comment and also a dependency in the module (needed
if an autoconf < 2.62 is in use).
Bruno
2009-04-14 Bruno Haible <address@hidden>
* modules/fcntl (Depends-on): Add extensions.
* m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
--- m4/fcntl_h.m4.orig 2009-04-14 21:28:51.000000000 +0200
+++ m4/fcntl_h.m4 2009-04-14 21:27:41.000000000 +0200
@@ -8,8 +8,9 @@
AC_DEFUN([gl_FCNTL_H],
[
- AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
+ dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW.
+ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h],
[AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
--- modules/fcntl.orig 2009-04-14 21:28:51.000000000 +0200
+++ modules/fcntl 2009-04-14 21:25:33.000000000 +0200
@@ -8,6 +8,7 @@
Depends-on:
include_next
unistd
+extensions
configure.ac:
gl_FCNTL_H