Skip to content
This repository
Browse code

Fix make error on non linux platform

  • Loading branch information...
commit bbae3f424037db53a114a94e03ef87446578f035 1 parent 6ccfe6c
BohuTANG authored April 02, 2012

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  engine/config.h
10  engine/config.h
@@ -18,13 +18,15 @@
18 18
 #endif
19 19
 
20 20
 #if defined(__linux__)
21  
-	# define n_open open64
22  
-	# define n_lseek lseek64
23  
-	# define n_fstat fstat64
  21
+	# define n_open (open64)
  22
+	# define n_lseek (lseek64)
  23
+	# define n_fstat (fstat64)
24 24
 	# define LSM_CREAT_FLAGS  (O_RDWR | O_TRUNC | O_CREAT | O_BINARY | O_LARGEFILE)
25 25
 	# define LSM_OPEN_FLAGS   (O_RDWR | O_BINARY | O_LARGEFILE)
26 26
 #else
27  
-	# define open64 open
  27
+	# define n_open (open)
  28
+	# define n_lseek (lseek)
  29
+	# define n_fstat (fstat)
28 30
 	# define LSM_CREAT_FLAGS  (O_RDWR | O_TRUNC | O_CREAT | O_BINARY)
29 31
 	# define LSM_OPEN_FLAGS   (O_RDWR | O_BINARY)
30 32
 #endif

0 notes on commit bbae3f4

Please sign in to comment.
Something went wrong with that request. Please try again.