commit | f27b7fb0567a9cbb642be9d98298cb6668e7db39 | [log] [tgz] |
---|---|---|
author | Hakan Kvist <hakan.kvist@sonymobile.com> | Wed Oct 10 08:32:52 2012 +0200 |
committer | Elliott Hughes <enh@google.com> | Thu Nov 29 11:53:33 2012 -0800 |
tree | 99a6559087e9fcb01aa78852e57054c4f0316b7a | |
parent | dea13da3407873e4f3fec9ba1a04b4fdacea07f4 [diff] [blame] |
Define DEFFILEMODE and friends Define the macros ACCESSPERMS, ALLPERMS and DEFFILEMODE. These macros originates from BSD but has been available in glibc for quite some time. Change-Id: I429cd30aa4e73f53b153ee7740070cebba166c57
diff --git a/libc/stdio/fopen.c b/libc/stdio/fopen.c index a6cddd3..6d2d882 100644 --- a/libc/stdio/fopen.c +++ b/libc/stdio/fopen.c
@@ -31,6 +31,8 @@ * SUCH DAMAGE. */ +#define __USE_BSD + #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h>