From c5569d773b96d1f528d4ab9ce1ed2bf30c45fcbe Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 1 Jan 2015 22:38:26 +0100 Subject: [PATCH] src/shared/ecc.c: Fix missing config.h include The ecc.c file forgets to include . This causes build failures with certain C libraries, because ecc.c uses O_CLOEXEC, which is only available when _GNU_SOURCE is defined. And _GNU_SOURCE gets defined by , so it should be included. --- src/shared/ecc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shared/ecc.c b/src/shared/ecc.c index 33c418792..41be02b72 100644 --- a/src/shared/ecc.c +++ b/src/shared/ecc.c @@ -24,6 +24,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include -- 2.47.3