[PATCH:xf86-input-mouse] Use asprintf (or Xprintf on old servers) instead of strdup+sprintf

Peter Hutterer peter.hutterer at who-t.net
Sun Jan 5 16:59:22 PST 2014


On Sun, Jan 05, 2014 at 04:26:19PM -0500, Trevor Woerner wrote:
> On 01/05/14 13:10, Alan Coopersmith wrote:
> > On 01/ 4/14 11:35 AM, Patrik Jakobsson wrote:
> >> asprintf needs _GNU_SOURCE to be defined or you'll get an implicit
> >> declaration
> >> and build failure. I fixed it with:
> >
> > Only on Linux, and you should be using xf86-input-evdev there, not
> > -mouse.
> >
> 
> Any idea which OSes still use -mouse? Everything but Linux?

you can still use -mouse on linux, it's just that evdev is preferred and
your distribution may not even ship -mouse anymore. but the answer to your
question is correct: everything but linux.

Cheers,
   Peter


More information about the xorg-devel mailing list