examples: add missing include
authorLuka Perkov <luka@openwrt.org>
Thu, 3 Jul 2014 10:28:23 +0000 (12:28 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jul 2014 10:53:13 +0000 (12:53 +0200)
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@openwrt.org>
examples/ustream-example.c

index 88c7381040c469af74bb922b0b7ede14f9be99e0..3db56c443e0f9eb67bc3d3b75c099445522de2f3 100644 (file)
@@ -5,6 +5,7 @@
 #include <getopt.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #include "ustream.h"
 #include "uloop.h"