summaryrefslogtreecommitdiff
path: root/src/libudev/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libudev/util.h')
-rw-r--r--src/libudev/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libudev/util.h b/src/libudev/util.h
index 6510237e1e..4efa4e062a 100644
--- a/src/libudev/util.h
+++ b/src/libudev/util.h
@@ -19,6 +19,7 @@
#pragma once
+#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
@@ -300,3 +301,8 @@ static inline void qsort_safe(void *base, size_t nmemb, size_t size,
int proc_cmdline(char **ret);
int getpeercred(int fd, struct ucred *ucred);
+
+union file_handle_union {
+ struct file_handle handle;
+ char padding[sizeof(struct file_handle) + MAX_HANDLE_SZ];
+};