From: Yang Ruirui Date: Wed, 29 Dec 2010 07:12:15 +0000 (-0800) Subject: Building fix about implicit declaration of strnlen X-Git-Tag: 2.0_alpha~1942 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27e261e920b8b27f51ee2b6f93d3458f7e4acbbe;p=framework%2Fconnectivity%2Fconnman.git Building fix about implicit declaration of strnlen 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. --- 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