From 14bd2704bbb61a7cf828119cda4f3616f8254871 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 3 Feb 2008 00:46:08 +0100 Subject: [PATCH] fix more compile errors --- Makefile | 3 ++- file.c | 2 ++ libuci.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.41.1