From e5b493a36673758b02dcb4124b002f4e029053a2 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 26 Dec 2018 17:47:17 -0800 Subject: POSIX_C_SOURCE: Not just a linux define. 200112L is a minimum. Don't force _POSIX_C_SOURCE 200112L, just make it a minimum. --- driver_tsip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'driver_tsip.c') diff --git a/driver_tsip.c b/driver_tsip.c index e6252027..cb30394b 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -18,9 +18,12 @@ /* if we insist on C99, then we need this to get M_LN2 from math.h */ /* 500 mean X/Open 1995 */ #define _XOPEN_SOURCE 500 +#endif /* __linux__ */ + +#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L /* round() needs _POSIX_C_SOURCE >= 200112L */ #define _POSIX_C_SOURCE 200112L -#endif /* __linux__ */ +#endif #include /* for pselect() */ -- cgit v1.2.1