chiark / gitweb /
configure.ac: memshr_create: Detect and use from <sys/mman.h>
[elogind.git] / src / basic / missing.h
index a923de5e58fa3a735cbced5ffa81b83546047133..e8508e7705d4e2de19d1643d7a3f7abfff777402 100644 (file)
 #include <linux/btrfs.h>
 #endif
 
-#if 0 /// UNNEEDED by elogind
+#ifdef HAVE_SYS_MMAN_H
+#include <sys/mman.h>
+#endif
+
 #ifdef HAVE_LINUX_VM_SOCKETS_H
 #include <linux/vm_sockets.h>
 #else
@@ -72,7 +75,6 @@ struct sockaddr_vm {
                                sizeof(unsigned int)];
 };
 #endif /* !HAVE_LINUX_VM_SOCKETS_H */
-#endif // 0
 
 #ifndef RLIMIT_RTTIME
 #define RLIMIT_RTTIME 15
@@ -1080,6 +1082,15 @@ struct input_mask {
 #ifndef INPUT_PROP_ACCELEROMETER
 #define INPUT_PROP_ACCELEROMETER  0x06
 #endif
+
+#ifndef BTN_DPAD_UP
+#define BTN_DPAD_UP 0x220
+#define BTN_DPAD_RIGHT 0x223
+#endif
+
+#ifndef KEY_ALS_TOGGLE
+#define KEY_ALS_TOGGLE 0x230
+#endif
 #endif // 0
 
 #ifndef HAVE_KEY_SERIAL_T
@@ -1102,10 +1113,6 @@ typedef int32_t key_serial_t;
 #define KEYCTL_DESCRIBE 6
 #endif
 
-#ifndef KEYCTL_LINK
-#define KEYCTL_LINK 8
-#endif
-
 #ifndef KEYCTL_READ
 #define KEYCTL_READ 11
 #endif