diff options
author | 2015-02-14 00:23:07 +0100 | |
---|---|---|
committer | 2015-02-14 00:23:19 +0100 | |
commit | fbdd7abdca3a22b70576ab359f42710765735188 (patch) | |
tree | 16421f598b89d869441a529a9ad7913505588891 /src/core/support/file_posix.c | |
parent | 3793267edec1208fd37dcc196d0302f1a07bc65c (diff) |
Cleaning up our posix definition / usage.
-) Let's not use _POSIX_SOURCE. It usually implies too much C99. _BSD_SOURCE would be the right thing to do here.
-) _BSD_SOURCE is getting deprecated by glibc, so we also have to define _DEFAULT_SOURCE under Linux.
-) accept4 and eventfd arn't as old as we may think; let's detect for it.
-) stdint.h interferes with all these definitions if included too early; let's move it down.
Diffstat (limited to 'src/core/support/file_posix.c')
-rw-r--r-- | src/core/support/file_posix.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/support/file_posix.c b/src/core/support/file_posix.c index cb48b3d52f..e1765666db 100644 --- a/src/core/support/file_posix.c +++ b/src/core/support/file_posix.c @@ -31,19 +31,6 @@ * */ -/* Posix code for gpr fdopen and mkstemp support. */ - -#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 200112L -#undef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200112L -#endif - -/* Don't know why I have to do this for mkstemp, looks like _POSIX_C_SOURCE - should be enough... */ -#ifndef _BSD_SOURCE -#define _BSD_SOURCE -#endif - #include <grpc/support/port_platform.h> #ifdef GPR_POSIX_FILE |