File werror-fixes.patch of Package ldmtool
Index: libldm-0.2.3/src/ldmtool.c
===================================================================
--- libldm-0.2.3.orig/src/ldmtool.c
+++ libldm-0.2.3/src/ldmtool.c
@@ -777,9 +777,11 @@ main(int argc, char *argv[])
}
g_option_context_free(context);
+#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION <= 35 && GLIB_MICRO_VERSION <= 0)
g_type_init();
+#endif
- LDM * const ldm = ldm_new(&err);
+ LDM * const ldm = ldm_new();
int ret = 0;
Index: libldm-0.2.3/src/ldm.c
===================================================================
--- libldm-0.2.3.orig/src/ldm.c
+++ libldm-0.2.3/src/ldm.c
@@ -31,6 +31,7 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <unistd.h>
#include <uuid/uuid.h>