mirror of
https://github.com/clearlinux/clr-boot-manager.git
synced 2026-09-06 13:41:41 +00:00
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:
committed by
William Douglas
parent
1fdb5aa6aa
commit
567adab339
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
#include "files.h"
|
||||
#include "log.h"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
#include "bootman.h"
|
||||
#include "config.h"
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
#include "blkid_stub.h"
|
||||
#include "bootloader.h"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
#include "bootloader.h"
|
||||
#include "bootman.h"
|
||||
|
||||
Reference in New Issue
Block a user