From 5c748743529cb500359cbdd14d1214b9a8d5d1aa Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 8 Mar 2020 02:03:58 +0000 Subject: [PATCH] Partially fix compilation for glibc under Linux Probably won't work for musl and now -- is needed to separate options. --- fractal.c | 5 +++++ fun-gen.c | 5 +++++ julia.c | 5 +++++ palette.c | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/fractal.c b/fractal.c index 722788e..40ee0fd 100644 --- a/fractal.c +++ b/fractal.c @@ -10,6 +10,11 @@ * Dedication along with this software. If not, see * . */ +/* gepopt visibility for GLIBC */ +#if !defined(__OpenBSD__) +#define _DEFAULT_SOURCE +#endif + #include #include #include diff --git a/fun-gen.c b/fun-gen.c index cce32d0..a86c562 100644 --- a/fun-gen.c +++ b/fun-gen.c @@ -10,6 +10,11 @@ * Dedication along with this software. If not, see * . */ +/* gepopt visibility for GLIBC */ +#if !defined(__OpenBSD__) +#define _DEFAULT_SOURCE +#endif + #include #include #include diff --git a/julia.c b/julia.c index 2fe7d32..bdecdfa 100644 --- a/julia.c +++ b/julia.c @@ -10,6 +10,11 @@ * Dedication along with this software. If not, see * . */ +/* gepopt visibility for GLIBC */ +#if !defined(__OpenBSD__) +#define _DEFAULT_SOURCE +#endif + #include #include #include diff --git a/palette.c b/palette.c index a8a6b46..f2ced23 100644 --- a/palette.c +++ b/palette.c @@ -10,6 +10,11 @@ * Dedication along with this software. If not, see * . */ +/* gepopt visibility for GLIBC */ +#if !defined(__OpenBSD__) +#define _DEFAULT_SOURCE +#endif + #include #include #include