diff options
author | Russ Cox <rsc@swtch.com> | 2009-09-13 17:30:12 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-09-13 17:30:12 -0400 |
commit | 37c9485968da09d0412b2c1297e9c325789476a3 (patch) | |
tree | 09614cb8f3c8cc64899df6c1e582be043270c923 | |
parent | efd88f54e8335f916e780669814ba34e5884b7a0 (diff) | |
download | plan9port-37c9485968da09d0412b2c1297e9c325789476a3.tar.gz plan9port-37c9485968da09d0412b2c1297e9c325789476a3.tar.bz2 plan9port-37c9485968da09d0412b2c1297e9c325789476a3.zip |
lib9: fix dirread/stat mismatch on Snow Leopard
http://codereview.appspot.com/116096
-rw-r--r-- | include/u.h | 3 | ||||
-rw-r--r-- | src/lib9/dirread.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/u.h b/include/u.h index 5f53736f..e4279179 100644 --- a/include/u.h +++ b/include/u.h @@ -34,6 +34,9 @@ extern "C" { #if defined(__AIX__) # define _XOPEN_SOURCE 1 #endif +#if defined(__APPLE__) +# define _DARWIN_NO_64_BIT_INODE /* Snow Leopard */ +#endif #define _LARGEFILE64_SOURCE 1 #define _FILE_OFFSET_BITS 64 diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c index 58fdfdbd..74dd1422 100644 --- a/src/lib9/dirread.c +++ b/src/lib9/dirread.c @@ -1,7 +1,3 @@ -#if defined(__APPLE__) -#define _DARWIN_NO_64_BIT_INODE /* Snow Leopard */ -#endif - #include <u.h> #define NOPLAN9DEFINES #include <libc.h> |