]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGLinuxEventInput.cxx
Revert joystick patch. One would have to provide a better one
[flightgear.git] / src / Input / FGLinuxEventInput.cxx
index 183c7b3ab805c319b84bee27b0c3de372d611ac6..03e7e05817ee7629d742810516ce84a6bfabd211 100644 (file)
 #  include <config.h>
 #endif
 
-#include "FGLinuxEventInput.hxx"
-
+#include <cstring>
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <poll.h>
 #include <linux/input.h>
 #include <dbus/dbus.h>
+#include <fcntl.h>
+#include "FGLinuxEventInput.hxx"
+
 
 struct TypeCode {
   unsigned type;
@@ -238,7 +242,7 @@ static EventNameByType EVENT_NAME_BY_TYPE;
 
 struct ltstr {
   bool operator()(const char * s1, const char * s2 ) const {
-    return strcmp( s1, s2 ) < 0;
+    return string(s1).compare( s2 ) < 0;
   }
 };