From 27e261e920b8b27f51ee2b6f93d3458f7e4acbbe Mon Sep 17 00:00:00 2001 From: Yang Ruirui Date: Tue, 28 Dec 2010 23:12:15 -0800 Subject: [PATCH] Building fix about implicit declaration of strnlen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I got build failing as below: cc1: warnings being treated as errors gdhcp/client.c: In function ‘alloc_dhcp_option’: gdhcp/client.c:1455: error: implicit declaration of function ‘strnlen’ define _GNU_SOURCE fixes this problem. --- gdhcp/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdhcp/client.c b/gdhcp/client.c index 107077a..8441104 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -23,6 +23,7 @@ #include #endif +#define _GNU_SOURCE #include #include #include -- 2.7.4