-
- Downloads
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.
Showing
- include/grpc/support/port_platform.h 28 additions, 5 deletionsinclude/grpc/support/port_platform.h
- src/core/iomgr/socket_utils_linux.c 1 addition, 4 deletionssrc/core/iomgr/socket_utils_linux.c
- src/core/support/file_posix.c 0 additions, 13 deletionssrc/core/support/file_posix.c
- src/core/support/log_posix.c 0 additions, 10 deletionssrc/core/support/log_posix.c
- src/core/support/string_posix.c 0 additions, 7 deletionssrc/core/support/string_posix.c
- src/core/support/sync_posix.c 0 additions, 7 deletionssrc/core/support/sync_posix.c
- src/core/support/time_posix.c 0 additions, 8 deletionssrc/core/support/time_posix.c
Loading
Please register or sign in to comment