diff options
Diffstat (limited to 'driver_geostar.c')
-rw-r--r-- | driver_geostar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_geostar.c b/driver_geostar.c index 127d92e1..5bacbfcf 100644 --- a/driver_geostar.c +++ b/driver_geostar.c @@ -10,10 +10,10 @@ * SPDX-License-Identifier: BSD-2-clause */ -#ifdef __linux__ +#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L /* isfinite() and pselect() needs _POSIX_C_SOURCE >= 200112L */ #define _POSIX_C_SOURCE 200112L -#endif /* __linux__ */ +#endif /* _POSIX_C_SOURCE */ #include <sys/time.h> /* for pselect() */ #include <stdbool.h> |