[OpenWrt-Devel] [PATCH 4/5] [libubox] examples: add missing include

Luka Perkov luka at openwrt.org
Thu Jul 3 06:28:23 EDT 2014


Patch fixes following build error:

error: implicit declaration of function ‘close’ [-Werror=implicit-function-declaration]
  close(cl->s.fd.fd);

Signed-off-by: Luka Perkov <luka at openwrt.org>
---
 examples/ustream-example.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/ustream-example.c b/examples/ustream-example.c
index 88c7381..3db56c4 100644
--- a/examples/ustream-example.c
+++ b/examples/ustream-example.c
@@ -5,6 +5,7 @@
 #include <getopt.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #include "ustream.h"
 #include "uloop.h"
-- 
2.0.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list