]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
ras-diskerror: dev_t is in sys/types.h in musl
authorHenrik Riomar <henrik.riomar@gmail.com>
Thu, 29 Aug 2019 06:54:56 +0000 (08:54 +0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 29 Aug 2019 13:28:02 +0000 (10:28 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
ras-diskerror-handler.c

index 964fe3f8d38ffb3e41fca5fd5816841f6b87e2b8..490041c8e08e6f922383d73683c4bae5be342b47 100644 (file)
@@ -18,6 +18,9 @@
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
+#ifndef __dev_t_defined
+#include <sys/types.h>
+#endif /* __dev_t_defined */
 #include <string.h>
 #include <errno.h>
 #include <sys/sysmacros.h>