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 files changed, 1 insertions(+), 0 deletions(-)

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 <config.h>
 #endif
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <errno.h>
 #include <unistd.h>
--
1.6.4

--
Thanks
Yang Ruirui
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to