diff options
author | Yang Ruirui <ruirui.r.yang@tieto.com> | 2010-12-28 23:12:15 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-12-28 23:12:15 -0800 |
commit | 27e261e920b8b27f51ee2b6f93d3458f7e4acbbe (patch) | |
tree | d3b00338790e12ae21f9fe047d671c8e05df9e86 | |
parent | 0246f1dbd4890507d488015dd816af9735e5f564 (diff) | |
download | connman-27e261e920b8b27f51ee2b6f93d3458f7e4acbbe.tar.gz connman-27e261e920b8b27f51ee2b6f93d3458f7e4acbbe.tar.bz2 connman-27e261e920b8b27f51ee2b6f93d3458f7e4acbbe.zip |
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.
-rw-r--r-- | gdhcp/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c index 107077ae..84411046 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -23,6 +23,7 @@ #include <config.h> #endif +#define _GNU_SOURCE #include <stdio.h> #include <errno.h> #include <unistd.h> |