Building fix about implicit declaration of strnlen
authorYang Ruirui <ruirui.r.yang@tieto.com>
Wed, 29 Dec 2010 07:12:15 +0000 (23:12 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Dec 2010 07:12:15 +0000 (23:12 -0800)
commit27e261e920b8b27f51ee2b6f93d3458f7e4acbbe
treed3b00338790e12ae21f9fe047d671c8e05df9e86
parent0246f1dbd4890507d488015dd816af9735e5f564
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.
gdhcp/client.c