Skip to content

Commit

Permalink
Include sys/sysmacros.h when sys/types.h does not define major
Browse files Browse the repository at this point in the history
glibc is planning to drop this from sys/types.h.
  • Loading branch information
floppym authored and vathpela committed May 6, 2016
1 parent d8269a4 commit c5685d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
#include <sys/stat.h>
#include <unistd.h>

#ifndef major
#include <sys/sysmacros.h>
#endif

#include <efivar.h>
#include <efiboot.h>

Expand Down

0 comments on commit c5685d8

Please sign in to comment.