Compile fix forinclude files from linux 2.6.7

Rein Klazes rklazes at xs4all.nl
Sun Sep 5 10:38:03 CDT 2004


Hi,

Fix for bugzilla bug#2354, compile failure on Slackware 10.

The include <linux/fd.h> uses since Linux 2.6.7 a macro defined in
<linux/compiler.h>. Compiler.h is new in linux 2.4.4, old but not very
old, so I added an autoconf check for such systems.

Need to run autoheader & autoconf after applying.

Changelog:
	.		: configure.ac
	dlls/winedos	: int13.c
	Fix compile error with include files from Linux 2.6.7+

Rein. 
-- 
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/configure.ac	2004-09-01 08:56:03.000000000 +0200
+++ mywine/configure.ac	2004-09-05 09:35:59.000000000 +0200
@@ -1112,6 +1112,7 @@
 	libutil.h \
 	link.h \
 	linux/cdrom.h \
+	linux/compiler.h \
 	linux/hdreg.h \
 	linux/input.h \
 	linux/ioctl.h \
--- wine/dlls/winedos/int13.c	2004-08-18 15:25:52.000000000 +0200
+++ mywine/dlls/winedos/int13.c	2004-09-05 11:11:32.000000000 +0200
@@ -31,6 +31,9 @@
 #endif
 #include <fcntl.h>
 #ifdef linux
+#ifdef HAVE_LINUX_COMPILER_H
+#include <linux/compiler.h>
+#endif
 # include <linux/fd.h>
 #endif
 


More information about the wine-patches mailing list