evdev.c: errno undefined

Zephaniah E. Hull warp at aehallh.com
Wed Feb 22 12:16:29 PST 2006


On Wed, Feb 22, 2006 at 02:44:16PM -0500, Felix Kühling wrote:
> Am Mittwoch, den 22.02.2006, 12:33 -0700 schrieb Brian Paul:
> > make[2]: Entering directory 
> > `/home/projects/freedesktop/xorg/src/driver/xf86-input-evdev/src'
> > if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> >      -g -O2 -DXFree86Server -DIN_MODULE -DXFree86Module 
> > -DXFree86LOADER -I/home/projects/freedesktop/xorg/modular/include/xorg 
> > -I/home/projects/freedesktop/xorg/modular/include    -I../src -MT 
> > evdev.lo -MD -MP -MF ".deps/evdev.Tpo" \
> >    -c -o evdev.lo `test -f 'evdev.c' || echo './'`evdev.c; \
> > then mv ".deps/evdev.Tpo" ".deps/evdev.Plo"; \
> > else rm -f ".deps/evdev.Tpo"; exit 1; \
> > fi
> > mkdir .libs
> >   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -DXFree86Server -DIN_MODULE 
> > -DXFree86Module -DXFree86LOADER 
> > -I/home/projects/freedesktop/xorg/modular/include/xorg 
> > -I/home/projects/freedesktop/xorg/modular/include -I../src -MT 
> > evdev.lo -MD -MP -MF .deps/evdev.Tpo -c evdev.c  -fPIC -DPIC -o 
> > .libs/evdev.o
> > evdev.c: In function `EvdevReadInput':
> > evdev.c:96: error: `errno' undeclared (first use in this function)
> > evdev.c:96: error: (Each undeclared identifier is reported only once
> > evdev.c:96: error: for each function it appears in.)
> > evdev.c: In function `EvdevProc':
> > evdev.c:178: error: `errno' undeclared (first use in this function)
> > 
> > 
> > Do we just need #include <errno.h> or should errno come from a libc 
> > wrapper?
> 
> FYI, I filed this last weekend:
> https://bugs.freedesktop.org/show_bug.cgi?id=5943. No response yet.

I sorta got it after I started some heavy reworking of the driver.

There's still some work to do, but, hrm, it should work again with no
big user visible changes.  Lemmie verify it and commit.

(Annoyingly, it compiles fine on my Debian sid box, I have no clue
what's different header wise.)

-- 
	  1024D/E65A7801 Zephaniah E. Hull <warp at aehallh.com>
	   92ED 94E4 B1E6 3624 226D  5727 4453 008B E65A 7801
	    CCs of replies from mailing lists are requested.

I've always taken the position that if you can't find anything bad  to
say about a language or an operating system then you don't  understand
it. I also agree with you about the advocacy. AHS. ASS.
  -- Shmuel (Seymour J.) Metz in the Scary Devil Monastery.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20060222/59da9fd4/attachment.pgp>


More information about the xorg mailing list