[ekg2-commit] ekg2: ioctld.c (HEAD) [peres]
CVS commit
cvs w amba.bydg.pdi.net
Wto, 27 Lut 2007, 23:11:51 CET
Module name: ekg2
Changes by: peres 07/02/27 23:11:48
Modified files:
ioctld.c
Log message:
Removing <linux/cdrom.h> from includes. That should fix compilation with
newer kernel headers, but I'm not sure, if it wouldn't break it with some
older. If that happens, please let me know. I would be very happy, if you'll
also let me know, to which version the problem happens.
Index: ioctld.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/ioctld/ioctld.c,v
diff -d -u -r1.6 -r1.7
--- ioctld.c 16 Oct 2005 20:12:29 -0000 1.6
+++ ioctld.c 27 Feb 2007 22:11:47 -0000 1.7
@@ -35,10 +35,16 @@
#ifdef __sun /* Solaris */
# include <sys/kbd.h>
# include <sys/kbio.h>
-#endif
+#endif
#ifdef __linux__
-# include <linux/cdrom.h>
-# include <linux/kd.h>
+#if 0
+/* This should fix compilation with newer kernel headers. I don't know why this
+ * file was included here, so I'm not sure I don't break something
+ * Maybe it was needed with older kernels? Anyone has got an idea?
+ * As we still use -k in make, disabling it. If it fails, let me know. [peres] */
+# include <linux/cdrom.h>
+#endif
+# include <linux/kd.h>
#endif
#include <fcntl.h>
Więcej informacji o liście dyskusyjnej ekg2-commit