summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Christau <jcristau@debian.org>2008-05-30 19:38:17 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-30 19:38:17 +0930
commitc0f13a2490f7fcb8a742affb15f1beeb0259d0f8 (patch)
tree165f69a53abfafab0b287042bfbd282b39789de6
parentcd09dd2b4f861ebc9674bdede1d1c1a09cefcec2 (diff)
Remove XFREE86_V4 ifdefs. #16152
Wasn't getting defined since the server started reporting 1.x as XORG_VERSION_CURRENT, so no code was actually built. Patch is untested. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au> X.Org Bug 16152 <http://bugs.freedesktop.org/show_bug.cgi?id=16152>
-rw-r--r--src/js_x.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/js_x.c b/src/js_x.c
index 623f35a..3b6997f 100644
--- a/src/js_x.c
+++ b/src/js_x.c
@@ -28,9 +28,6 @@
#include <sys/types.h>
#include "xf86Version.h"
-#if XORG_VERSION_CURRENT >= XF86_VERSION_NUMERIC(3,9,0,0,0)
-#define XFREE86_V4 1
-#endif
#include "misc.h"
#include "xf86.h"
#include "xf86_OSproc.h"
@@ -38,11 +35,10 @@
#include "exevents.h" /* Needed for InitValuator/Proximity stuff */
#include "mipointer.h"
-#ifdef XFree86LOADER
#include "xf86Module.h"
-#endif
#include <errno.h>
#include <string.h>
+#include <unistd.h>
#define JSX_XCOORD 65584
#define JSX_YCOORD 65585
@@ -51,8 +47,6 @@
#define SYSCALL(call) while(((call) == -1) && (errno == EINTR))
-#ifdef XFREE86_V4
-
struct hiddev_event
{
unsigned hid;
@@ -333,8 +327,6 @@ xf86JS_XInit(InputDriverPtr drv, IDevPtr dev, int flags)
_X_EXPORT InputDriverRec JAMSTUDIO =
{ 1, "js_x", NULL, xf86JS_XInit, xf86JS_XUnInit, NULL, 0 };
-#ifdef XFree86LOADER
-
static void
xf86JS_XUnplug(pointer p)
{
@@ -366,5 +358,3 @@ _X_EXPORT XF86ModuleData js_xModuleData = {
xf86JS_XPlug,
xf86JS_XUnplug
};
-#endif
-#endif