chiark / gitweb /
ask-password: when the user types a overly long password, beep and refuse
[elogind.git] / src / shared / missing.h
index 4e63fb9ac450a627adac1eb8e2788770036c2b80..bc0fcd56afbf5430aa8ff25668d17b272f021110 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/oom.h>
 #include <linux/input.h>
 #include <linux/if_link.h>
+#include <linux/loop.h>
 
 #ifdef HAVE_AUDIT
 #include <libaudit.h>
@@ -365,3 +366,15 @@ static inline int setns(int fd, int nstype) {
         return syscall(__NR_setns, fd, nstype);
 }
 #endif
+
+#if !HAVE_DECL_LO_FLAGS_PARTSCAN
+#define LO_FLAGS_PARTSCAN 8
+#endif
+
+#ifndef LOOP_CTL_REMOVE
+#define LOOP_CTL_REMOVE 0x4C81
+#endif
+
+#ifndef LOOP_CTL_GET_FREE
+#define LOOP_CTL_GET_FREE 0x4C82
+#endif