Partially fix compilation for glibc under Linux

Probably won't work for musl and now -- is needed to separate options.
This commit is contained in:
Lucas 2020-03-08 02:03:58 +00:00
parent 4304edc0f0
commit 5c74874352
4 changed files with 20 additions and 0 deletions

View File

@ -10,6 +10,11 @@
* Dedication along with this software. If not, see * Dedication along with this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0/>. * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/ */
/* gepopt visibility for GLIBC */
#if !defined(__OpenBSD__)
#define _DEFAULT_SOURCE
#endif
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>

View File

@ -10,6 +10,11 @@
* Dedication along with this software. If not, see * Dedication along with this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0/>. * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/ */
/* gepopt visibility for GLIBC */
#if !defined(__OpenBSD__)
#define _DEFAULT_SOURCE
#endif
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>

View File

@ -10,6 +10,11 @@
* Dedication along with this software. If not, see * Dedication along with this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0/>. * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/ */
/* gepopt visibility for GLIBC */
#if !defined(__OpenBSD__)
#define _DEFAULT_SOURCE
#endif
#include <complex.h> #include <complex.h>
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -10,6 +10,11 @@
* Dedication along with this software. If not, see * Dedication along with this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0/>. * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/ */
/* gepopt visibility for GLIBC */
#if !defined(__OpenBSD__)
#define _DEFAULT_SOURCE
#endif
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>