Software /
code /
prosody
Comparison
util-src/pposix.c @ 9280:37b796cc366a
util.pposix: Fix or silence a warning on OS X (#1202)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Sep 2018 11:46:02 +0200 |
parent | 9278:8f9e18d4fe50 |
child | 9281:927adf8648d3 |
comparison
equal
deleted
inserted
replaced
9278:8f9e18d4fe50 | 9280:37b796cc366a |
---|---|
18 | 18 |
19 #if defined(__linux__) | 19 #if defined(__linux__) |
20 #define _GNU_SOURCE | 20 #define _GNU_SOURCE |
21 #else | 21 #else |
22 #define _DEFAULT_SOURCE | 22 #define _DEFAULT_SOURCE |
23 #endif | |
24 #if defined(__APPLE__) | |
25 #define _DARWIN_C_SOURCE | |
23 #endif | 26 #endif |
24 #define _POSIX_C_SOURCE 200809L | 27 #define _POSIX_C_SOURCE 200809L |
25 | 28 |
26 #include <stdlib.h> | 29 #include <stdlib.h> |
27 #include <math.h> | 30 #include <math.h> |