diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-05 09:23:46 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-05 09:23:46 +0000 |
commit | 0c8288a72c6d6f2774dd57a7107ad68c98e0d24a (patch) | |
tree | 97ec8014259d4a3a2bcd60aba6fb2dafd4b6591d /source/smbwrapper/realcalls.h | |
parent | 8aa6c16eeb96d6a66a2946f5048126f175f9f609 (diff) | |
download | samba-0c8288a72c6d6f2774dd57a7107ad68c98e0d24a.tar.gz samba-0c8288a72c6d6f2774dd57a7107ad68c98e0d24a.tar.xz samba-0c8288a72c6d6f2774dd57a7107ad68c98e0d24a.zip |
this gets it compiling under IRIX 6.4. Doesn't work yet though.
Diffstat (limited to 'source/smbwrapper/realcalls.h')
-rw-r--r-- | source/smbwrapper/realcalls.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/smbwrapper/realcalls.h b/source/smbwrapper/realcalls.h index cf23aec5b2e..0c9bcd69bf5 100644 --- a/source/smbwrapper/realcalls.h +++ b/source/smbwrapper/realcalls.h @@ -31,8 +31,16 @@ #define real_link(fn1, fn2) (syscall(SYS_link, (fn1), (fn2))) #define real_open(fn,flags,mode) (syscall(SYS_open, (fn), (flags), (mode))) -#define real_open64(fn,flags,mode) (syscall(SYS_open64, (fn), (flags), (mode))) +#ifdef SYS_open64 +#define real_open64(fn,flags,mode) (syscall(SYS_open64, (fn), (flags), (mode))) +#elif HAVE__OPEN64 +#define real_open64(fn,flags,mode) (_open64(fn,flags,mode)) +#define NO_OPEN64_ALIAS +#elif HAVE___OPEN64 +#define real_open64(fn,flags,mode) (__open64(fn,flags,mode)) +#define NO_OPEN64_ALIAS +#endif #ifdef HAVE__OPENDIR #define real_opendir(fn) (_opendir(fn)) |