Patch: master: work around glibc / kernel endian handling conflict
Hi All,
With this patch anaconda will build again.
Regards,
Hans
diff --git a/loader/cdinstall.c b/loader/cdinstall.c
index 86abcea..b87554d 100644
--- a/loader/cdinstall.c
+++ b/loader/cdinstall.c
@@ -33,6 +33,13 @@
#include <sys/mount.h>
#include <sys/ioctl.h>
#include <unistd.h>
+/* Hack both __BIG_ENDIAN and __LITTLE_ENDIAN get defined by glibc, the
+ kernel headers we need do not like this! */
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+#undef __BIG_ENDIAN
+#else
+#undef __LITTLE_ENDIAN
+#endif
#include <asm/types.h>
#include <limits.h>
#include <linux/cdrom.h>
diff --git a/loader/init.c b/loader/init.c
index 8ffce1e..feb9c55 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -61,7 +61,6 @@
#endif
#include <asm/types.h>
-#include <linux/cdrom.h>
#include <linux/serial.h>
#ifndef MS_REMOUNT
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|