EventFlag: += unistd.h
Missing dependency shows up when libfmq is installed using the
BOARD_VNDK_VERSION := current because it gets a different version of
liblog headers that no longer include it transitively.
Test: links
Test: try to compiles with BOARD_VNDK_VERSION := current
Bug: 33241851
Change-Id: I08543634f6b249550e67bb7cc97b9bcffe1792d3
diff --git a/EventFlag.cpp b/EventFlag.cpp
index 4d370b0..7ce4edd 100644
--- a/EventFlag.cpp
+++ b/EventFlag.cpp
@@ -20,6 +20,7 @@
#include <linux/futex.h>
#include <sys/mman.h>
#include <sys/syscall.h>
+#include <unistd.h>
#include <utils/Log.h>
#include <utils/SystemClock.h>
#include <new>