From: Felix Fietkau Date: Sat, 2 Feb 2008 23:46:08 +0000 (+0100) Subject: fix more compile errors X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=14bd2704bbb61a7cf828119cda4f3616f8254871;p=uci.git fix more compile errors --- diff --git a/Makefile b/Makefile index 65a38c7..766fccb 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,9 @@ ifeq ($(OS),Darwin) SHLIB_EXT=dylib SHLIB_FLAGS=-dylib else + LD=gcc SHLIB_EXT=so - SHLIB_FLAGS=-shared -Wl,soname,$(SHLIB_FILE) + SHLIB_FLAGS=-shared -Wl,-soname,$(SHLIB_FILE) endif SHLIB_FILE=libuci.$(SHLIB_EXT).$(VERSION) diff --git a/file.c b/file.c index ae58fbc..803e912 100644 --- a/file.c +++ b/file.c @@ -16,8 +16,10 @@ * This file contains the code for parsing uci config files */ +#define _GNU_SOURCE #include #include +#include #include #include #include diff --git a/libuci.c b/libuci.c index 51ce7da..d4ef8d8 100644 --- a/libuci.c +++ b/libuci.c @@ -16,6 +16,7 @@ * This file contains some common code for the uci library */ +#define _GNU_SOURCE #include #include #include