X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Ffcntl_.h;h=e16ad54afe1b330258462a6a1ce39d64909fa018;hb=e69450077be2e9b4045c21e2ec528e5085ba4820;hp=5c2857caef685106ac4818676dafdc06aa1bf6c3;hpb=e7921f54c622e3b32e525f345bc34308821e4ae0;p=gzip 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