[PATCH] Compile fix on Linux 2.6.28 / x86

Marcus Meissner marcus at jet.franken.de
Sat Jan 3 13:42:02 CST 2009


On Sat, Jan 03, 2009 at 08:36:07PM +0100, Pavel Troller wrote:
> Hi!
>   Due to changes in Linux kernel include file structure, the following patch
> is necessary to compile wine with the 2.6.28 kernel:
> 
> --- wine/dlls/ntdll/serial.c.old	2009-01-03 19:31:17.000000000 +0100
> +++ wine/dlls/ntdll/serial.c	2009-01-03 20:31:11.000000000 +0100
> @@ -74,6 +74,10 @@
>  #include "wine/debug.h"
>  
>  #ifdef HAVE_LINUX_SERIAL_H
> +#include <linux/version.h>
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
> +#include <asm/types.h>
> +#endif
>  #include <linux/serial.h>
>  #endif

Better use #ifdef HAVE_ASM_TYPES_H here, its already been tested for.

Ciao, Marcus



More information about the wine-devel mailing list