Permalink
Browse files

Fix make error on non linux platform

  • Loading branch information...
1 parent 6ccfe6c commit bbae3f424037db53a114a94e03ef87446578f035 @BohuTANG committed Apr 2, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 engine/config.h
View
@@ -18,13 +18,15 @@
#endif
#if defined(__linux__)
- # define n_open open64
- # define n_lseek lseek64
- # define n_fstat fstat64
+ # define n_open (open64)
+ # define n_lseek (lseek64)
+ # define n_fstat (fstat64)
# define LSM_CREAT_FLAGS (O_RDWR | O_TRUNC | O_CREAT | O_BINARY | O_LARGEFILE)
# define LSM_OPEN_FLAGS (O_RDWR | O_BINARY | O_LARGEFILE)
#else
- # define open64 open
+ # define n_open (open)
+ # define n_lseek (lseek)
+ # define n_fstat (fstat)
# define LSM_CREAT_FLAGS (O_RDWR | O_TRUNC | O_CREAT | O_BINARY)
# define LSM_OPEN_FLAGS (O_RDWR | O_BINARY)
#endif

0 comments on commit bbae3f4

Please sign in to comment.