diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-01-03 15:49:00 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-01-09 11:07:38 +1000 |
commit | 9134a9068f3046d2b31c95aeec8c66049cb79317 (patch) | |
tree | 6492085a33ad350f08117a4e3edde2298499ba05 /xts5 | |
parent | 7032632e11cbcbb13de1c019efbaec493f1867f2 (diff) |
lib/Xinput: include stdlib for getenv
Crashes XSetDeviceFocus and probably everything else in XI that relies on
d = getenv("DISPLAY");
dpy = XOpenDisplay(d);
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xts5')
-rw-r--r-- | xts5/src/lib/XInput.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xts5/src/lib/XInput.c b/xts5/src/lib/XInput.c index 35c3c95e..4a992c92 100644 --- a/xts5/src/lib/XInput.c +++ b/xts5/src/lib/XInput.c @@ -68,6 +68,7 @@ SOFTWARE. #endif #include <stdio.h> +#include <stdlib.h> #ifdef INPUTEXTENSION #include "X11/extensions/XIproto.h" #include "X11/extensions/XInput.h" |