gcc -I. -I../../../../../../include -Wmissing-braces -Wreturn-type -Wformat -Wimplicit-int -Wimplicit-function-declarati
on -O3 -fomit-frame-pointer -DUNICODE -DZIP_SUPPORT -I/usr/include -oclose.o -c ../../../close.c
../../../close.c: In function ‘TIFFCleanup’:
../../../close.c:52:30: error: ‘O_RDONLY’ undeclared (first use in this function)
52 | if (tif->tif_mode != O_RDONLY)
| ^~~~~~~~
../../../close.c:52:30: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [../../../../../../config/
rules.mk:88: close.o] Error 1
make[3]: *** [../../../config/
lib.mk:68: descend] Error 2
make[2]: *** [../../config/
dir.mk:68: tiff.inst] Error 2
make[1]: *** [../config/
dir.mk:68: 3rd.inst] Error 2
make: *** [config/
dir.mk:68: src.inst] Error 2
...
Probable fix:
https://techoverflow.net/2019/06/21/how-to-fix-undeclared-o_rdonly-o_rdwr-o_wronly-in-c/
Best regards,