Skip to content

Commit 94ae4ee

Browse files
committed
Include new header for major/minor/makedev macros.
In glibc 2.25, these macros as provided via sys/types.h are now deprecated. The correct header is now sys/sysmacros.h. See https://sourceware.org/glibc/wiki/Release/2.25#Packaging_Changes
1 parent 319cb25 commit 94ae4ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cbits/HsUnixCompat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#ifdef SOLARIS
44
#include <sys/mkdev.h>
5+
#elif defined(__GLIBC__)
6+
#include <sys/sysmacros.h>
57
#endif
68

79
unsigned int unix_major(dev_t dev)

0 commit comments

Comments
 (0)