[PATCH XTS] lib/Xinput: include stdlib for getenv
Peter Hutterer
peter.hutterer at who-t.net
Mon Jan 2 21:52:19 PST 2012
Crashes XSetDeviceFocus and probably everything else in XI that relies on
d = getenv("DISPLAY");
dpy = XOpenDisplay(d);
With this patch, the tests now change from UNRESOLVED to UNTESTED. Hooray.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Figuring out why getenv() returns garbage took longer than necessary... I
suspect there are a few more mines like this, but they're hard to spot given
that there seem to be more warnings than regular compiler output.
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 eba66c5..067fca0 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"
--
1.7.7.4
More information about the xorg-devel
mailing list