Просмотр исходного кода

Include fcntl.h for F_* and O_* defines

Fixes errors like
utils.c:95:22: error: use of undeclared identifier 'O_WRONLY'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
(cherry picked from commit 1a2c72a80ec079f8eb2dadef670773ca3a89dba0)
Khem Raj 8 лет назад
Родитель
Сommit
c4c49cf501
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      qdevices/utils.c

+ 1 - 0
qdevices/utils.c

@@ -39,6 +39,7 @@
 
 #include <err.h>
 #include <errno.h>
+#include <fcntl.h>
 #include <inttypes.h>
 #include <libgen.h>
 #include <stdio.h>