Ensure to include sysmacros.h for major/minor usage

As of glibc 2.25, warnings will be emitted at compile time to state
that you must explicitly include the header now, due to libraries
tending to have their own definitions.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
This commit is contained in:
Ikey Doherty
2017-05-02 10:51:27 -07:00
committed by William Douglas
parent 1fdb5aa6aa
commit 567adab339
7 changed files with 7 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/sysmacros.h>
/**
* Ensure we check here for the blkid device being correct.
+1
View File
@@ -26,6 +26,7 @@
#include <sys/mman.h>
#include <sys/sendfile.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include "blkid_stub.h"
+1
View File
@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include "blkid_stub.h"
+1
View File
@@ -14,6 +14,7 @@
#include <assert.h>
#include <stdlib.h>
#include <sys/mount.h>
#include <sys/sysmacros.h>
#include "files.h"
#include "log.h"
+1
View File
@@ -15,6 +15,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysmacros.h>
#include "bootman.h"
#include "config.h"
+1
View File
@@ -31,6 +31,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysmacros.h>
#include "blkid_stub.h"
#include "bootloader.h"
+1
View File
@@ -28,6 +28,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysmacros.h>
#include "bootloader.h"
#include "bootman.h"