]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGLinuxEventInput.cxx
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
[flightgear.git] / src / Input / FGLinuxEventInput.cxx
index 183c7b3ab805c319b84bee27b0c3de372d611ac6..621e15fd8b41a9d5994ab96139385a160f5c2ff8 100644 (file)
@@ -29,6 +29,8 @@
 #include <poll.h>
 #include <linux/input.h>
 #include <dbus/dbus.h>
+#include <fcntl.h>
+
 
 struct TypeCode {
   unsigned type;
@@ -238,7 +240,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;
   }
 };