Comparison

util-src/pposix.c @ 10411:db2a06b9ff98

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 16 Nov 2019 16:52:31 +0100
parent 10410:659b577f280c
parent 9681:861d510e1876
child 10480:94cacf9fd0ae
comparison
equal deleted inserted replaced
10410:659b577f280c 10411:db2a06b9ff98
23 #else 23 #else
24 #ifndef _DEFAULT_SOURCE 24 #ifndef _DEFAULT_SOURCE
25 #define _DEFAULT_SOURCE 25 #define _DEFAULT_SOURCE
26 #endif 26 #endif
27 #endif 27 #endif
28
28 #if defined(__APPLE__) 29 #if defined(__APPLE__)
29 #ifndef _DARWIN_C_SOURCE 30 #ifndef _DARWIN_C_SOURCE
30 #define _DARWIN_C_SOURCE 31 #define _DARWIN_C_SOURCE
31 #endif 32 #endif
32 #endif 33 #endif
34
35 #if ! defined(__FreeBSD__)
33 #ifndef _POSIX_C_SOURCE 36 #ifndef _POSIX_C_SOURCE
34 #define _POSIX_C_SOURCE 200809L 37 #define _POSIX_C_SOURCE 200809L
38 #endif
35 #endif 39 #endif
36 40
37 #include <stdlib.h> 41 #include <stdlib.h>
38 #include <math.h> 42 #include <math.h>
39 #include <unistd.h> 43 #include <unistd.h>