Use fcntl.h instead of sys/fcntl.h
Use the standard fcntl.h instead of the implementation detail sys/fcntl.h
to fix building against musl libc.
Bug: 190084016
Test: m USE_HOST_MUSL=true host-native
Change-Id: I73df399af21309e1abc2277e9687bba7a857d4fc
diff --git a/aosp/cow_converter.cc b/aosp/cow_converter.cc
index f4ac5b0..2f93e3a 100644
--- a/aosp/cow_converter.cc
+++ b/aosp/cow_converter.cc
@@ -14,6 +14,7 @@
// limitations under the License.
//
+#include <fcntl.h>
#include <stdio.h>
#include <string.h>
@@ -21,7 +22,6 @@
#include <cstdio>
#include <memory>
-#include <sys/fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
diff --git a/aosp/update_attempter_android_integration_test.cc b/aosp/update_attempter_android_integration_test.cc
index 16f8337..3ce06eb 100644
--- a/aosp/update_attempter_android_integration_test.cc
+++ b/aosp/update_attempter_android_integration_test.cc
@@ -19,7 +19,7 @@
#include <string>
#include <utility>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/sendfile.h>
#include <unistd.h>
diff --git a/aosp/update_attempter_android_unittest.cc b/aosp/update_attempter_android_unittest.cc
index a3f25b9..458c224 100644
--- a/aosp/update_attempter_android_unittest.cc
+++ b/aosp/update_attempter_android_unittest.cc
@@ -20,7 +20,7 @@
#include <string>
#include <utility>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/sendfile.h>
#include <unistd.h>