diff --git a/libudev-compat/util.h b/libudev-compat/util.h index 441e620..1a3ba1d 100644 --- a/libudev-compat/util.h +++ b/libudev-compat/util.h @@ -124,6 +124,18 @@ bool streq_ptr(const char *a, const char *b); #define ALIGN(l) ALIGN4(l) #endif +#ifndef MAX_HANDLE_SZ +#define MAX_HANDLE_SZ 128 + +struct file_handle +{ + unsigned int handle_bytes; + int handle_type; + /* File identifier. */ + unsigned char f_handle[0]; +}; +#endif + union file_handle_union { struct file_handle handle; char padding[sizeof(struct file_handle) + MAX_HANDLE_SZ]; diff --git a/vdevd/helpers/LINUX/Makefile b/vdevd/helpers/LINUX/Makefile index a2a3068..ca99823 100644 --- a/vdevd/helpers/LINUX/Makefile +++ b/vdevd/helpers/LINUX/Makefile @@ -3,7 +3,7 @@ include ../../../buildconf.mk C_SRCS:= $(wildcard *.c) CXSRCS:= $(wildcard *.cpp) OBJ := $(patsubst %.c,$(BUILD_VDEVD_HELPERS)/%.o,$(C_SRCS)) $(patsubst %.cpp,$(BUILD_VDEVD_HELPERS)/%.o,$(CXSRCS)) -LIB := +LIB := -lrt HELPER_SCRIPTS := $(wildcard *.sh) daemonlet HELPERS := stat_optical stat_ata stat_input stat_scsi stat_v4l stat_net stat_usb stat_bus stat_path event-put echo_n $(HELPER_SCRIPTS)