PATCH: define __user (was: Re: ./configure message)

Marcus Meissner marcus at jet.franken.de
Thu Feb 23 01:12:20 CST 2006


On Wed, Feb 22, 2006 at 05:48:44PM -0700, Jesse Allen wrote:
> On 2/21/06, dmitry serpokryl <dmitry.serpokryl at gmail.com> wrote:
> > configure: WARNING: linux/capi.h: present but cannot be compiled
> > configure: WARNING: linux/capi.h:     check for missing prerequisite
> > headers?
> > configure: WARNING: linux/capi.h: see the Autoconf documentation
> > configure: WARNING: linux/capi.h:     section "Present But Cannot Be
> > Compiled"
> > configure: WARNING: linux/capi.h: proceeding with the preprocessor's result
> > configure: WARNING: linux/capi.h: in the future, the compiler will take
> > precedence
> > configure: WARNING:     ## ------------------------------------ ##
> > configure: WARNING:     ## Report this to wine-devel at winehq.org ##
> > configure: WARNING:     ## ------------------------------------ ##
> >
> >
> > SuSE 10 x86-64, gcc-4.0.2 (release)
> You are compiling with linux 2.6 header files...

And there is nothing bad with that.

We need __user defined (to nothing) during configure checking as a
workaround.

What about this patch?

Ciao, Marcus

Changelog:
	Explicitly define __user to "empty" to allow kernel header
	inclusion.

Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.445
diff -u -r1.445 configure.ac
--- configure.ac	20 Feb 2006 20:19:39 -0000	1.445
+++ configure.ac	23 Feb 2006 07:11:07 -0000
@@ -169,6 +169,7 @@
 AC_SUBST(GLU32FILES,"")
 AC_SUBST(OPENGL_LIBS,"")
 
+AC_DEFINE(__user,[],[To allow configure checking of kernel headers.])
 dnl **** Check for header files ****
 
 AC_CHECK_HEADERS(\



More information about the wine-patches mailing list