bridging: Avoid to include unistd.h if unsupported
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 15 May 2017 15:27:03 +0000 (17:27 +0200)
committerZiran Sun <ziran.sun@samsung.com>
Mon, 9 Oct 2017 09:48:25 +0000 (09:48 +0000)
Change-Id: I4732cfda0a7aea527d4ab012695e476428b3dec1
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21207
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
(cherry picked from commit 101a28c3e7644a073c6bd8a7b561ec1ac83a28f9)

bridging/plugins/hue_plugin/hue_auth_spec.cpp

index 8824420a3a23853e963a7d7a46bd7d06a8988048..35d2af77f1a2681b083d578195b825a79e0437bd 100644 (file)
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 //
+#include "iotivity_config.h"
 
 #include <mutex>
 #include <stdlib.h>
 #include <stdint.h>
 #include <string>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <sys/types.h>