0002-tools-hciconfig-include-fcntl.h.patch 717 B

123456789101112131415161718192021222324252627
  1. From ae607756a5f2a09bce1fc3a52e74b5f471245e33 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Mon, 6 Apr 2015 23:54:19 +0200
  4. Subject: [PATCH] tools/hciconfig: include <fcntl.h>
  5. Needed to get the definition of mode_t in musl.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. ---
  8. tools/hciconfig.c | 1 +
  9. 1 file changed, 1 insertion(+)
  10. diff --git a/tools/hciconfig.c b/tools/hciconfig.c
  11. index f1458b9..6776d62 100644
  12. --- a/tools/hciconfig.c
  13. +++ b/tools/hciconfig.c
  14. @@ -34,6 +34,7 @@
  15. #include <stdlib.h>
  16. #include <string.h>
  17. #include <getopt.h>
  18. +#include <fcntl.h>
  19. #include <sys/param.h>
  20. #include <sys/ioctl.h>
  21. #include <sys/socket.h>
  22. --
  23. 2.1.0