Update cbif.c

fix a bug when compiling IOR in MacOS will cause error "Undefined symbols for _lseek64 and _open64"
master
VinsonLeung 2017-11-19 15:27:34 -06:00 committed by GitHub
parent 3aa1f4c9b7
commit 9c4bf51d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,14 @@
#define BYTE_BOUNDARY 8
#ifndef open64 /* necessary for TRU64 -- */
# define open64 open /* unlikely, but may pose */
#endif /* not open64 */ /* conflicting prototypes */
#ifndef lseek64 /* necessary for TRU64 -- */
# define lseek64 lseek /* unlikely, but may pose */
#endif /* not lseek64 */ /* conflicting prototypes */
int
main(int argc, char **argv)
{