X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Ffcntl_.h;fp=lib%2Ffcntl_.h;h=e16ad54afe1b330258462a6a1ce39d64909fa018;hb=800deb09b422a73c1212233a93839a223ff59678;hp=5c2857caef685106ac4818676dafdc06aa1bf6c3;hpb=0d5a754ba8f2cc33e98d48d559f0ad6cd18a43a3;p=debian%2Fgzip diff --git a/lib/fcntl_.h b/lib/fcntl_.h index 5c2857c..e16ad54 100644 --- a/lib/fcntl_.h +++ b/lib/fcntl_.h @@ -26,6 +26,25 @@ #include #include @ABSOLUTE_FCNTL_H@ + +/* Declare overridden functions. */ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef FCHDIR_REPLACEMENT +# define open rpl_open +extern int open (const char *, int, ...); +#endif + +#ifdef __cplusplus +} +#endif + + +/* Fix up the O_* macros. */ + #if !defined O_DIRECT && defined O_DIRECTIO /* Tru64 spells it `O_DIRECTIO'. */ # define O_DIRECT O_DIRECTIO