Include <fcntl.h> instead of <sys/fcntl.h>.
authorDoug Evans <dje@google.com>
Thu, 19 Nov 2015 23:05:45 +0000 (15:05 -0800)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 7 Jan 2016 00:58:18 +0000 (16:58 -0800)
Musl complains about using sys/fcntl.h, and with -Werror that
gives a compilation failure. Every other file includes <fcntl.h>
so just use that.

Change-Id: Ibc743bbe335e9e9b91da7e4eacc01cc80cd8b35a
Reviewed-on: https://chromium-review.googlesource.com/313419
Commit-Ready: Doug Evans <dje@google.com>
Tested-by: Doug Evans <dje@google.com>
Reviewed-by: Nam Nguyen <namnguyen@chromium.org>
futility/dump_kernel_config_lib.c

index c2d5943..4fe990c 100644 (file)
@@ -5,10 +5,10 @@
  * Exports the kernel commandline from a given partition/image.
  */
 
+#include <fcntl.h>
 #include <stdio.h>
 #include <string.h>
 #include <sys/mman.h>
-#include <sys/fcntl.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>