Make libeffects build with the VNDK.
When the vndk is enabled (BOARD_VNDK_VERSION=current),
vendor libraries must only link against vendor variants
in the build system. This also means that they receive
restricted sets of headers and that automatic global
headers are restricted.
Test: build libeffects with BOARD_VNDK_VERSION=current
Bug: 37342627
Change-Id: I95b4bc39eb98b5af4069ab64d81574a451c8131f
diff --git a/media/libeffects/factory/EffectsConfigLoader.c b/media/libeffects/factory/EffectsConfigLoader.c
index 5c973b4..fcef36f 100644
--- a/media/libeffects/factory/EffectsConfigLoader.c
+++ b/media/libeffects/factory/EffectsConfigLoader.c
@@ -19,6 +19,7 @@
#include <dlfcn.h>
#include <stdlib.h>
+#include <unistd.h>
#include <cutils/config_utils.h>
#include <cutils/misc.h>