[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fopen: Fix compilation error on AIX (regression from 2020-05-28)
From: |
Bruno Haible |
Subject: |
fopen: Fix compilation error on AIX (regression from 2020-05-28) |
Date: |
Sun, 08 Aug 2021 18:40:26 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-210-generic; KDE/5.18.0; x86_64; ; ) |
When compiling a testdir for module 'fopen' on AIX 7, I get this compilation
error:
gcc -maix64 -DHAVE_CONFIG_H -I. -I../../../fopen/gllib -I..
-DGNULIB_STRICT_CHECKING=1 -I/home/haible/prefix64/include -Wall -D_THREAD_SAFE
-g -O2 -MT fopen.o -MD -MP -MF .deps/fopen.Tpo -c -o fopen.o
../../../fopen/gllib/fopen.c
../../../fopen/gllib/fopen.c: In function 'rpl_fopen':
../../../fopen/gllib/fopen.c:107:27: error: 'O_BINARY' undeclared (first use in
this function); did you mean 'O_DELAY'?
open_flags |= O_BINARY;
^~~~~~~~
O_DELAY
../../../fopen/gllib/fopen.c:107:27: note: each undeclared identifier is
reported only once for each function it appears in
gmake[5]: *** [Makefile:1545: fopen.o] Error 1
This patch should fix it.
2021-08-08 Bruno Haible <bruno@clisp.org>
fopen: Fix compilation error on AIX (regression from 2020-05-28).
* modules/fopen (Depends-on): Add fcntl-h.
diff --git a/modules/fopen b/modules/fopen
index 425cb61..e672cd5 100644
--- a/modules/fopen
+++ b/modules/fopen
@@ -8,6 +8,7 @@ m4/fopen.m4
Depends-on:
stdio
largefile
+fcntl-h [test $REPLACE_FOPEN = 1]
stdbool [test $REPLACE_FOPEN = 1]
unistd [test $REPLACE_FOPEN = 1]
fstat [test $REPLACE_FOPEN = 1]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- fopen: Fix compilation error on AIX (regression from 2020-05-28),
Bruno Haible <=