Skip to content

Commit

Permalink
Merge pull request #63 from tilt12345678/merging
Browse files Browse the repository at this point in the history
suggested fixes for issues #61, #62
  • Loading branch information
Jude Nelson committed Sep 3, 2015
2 parents 87806ab + daa1ca6 commit 1215679
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions libudev-compat/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion vdevd/helpers/LINUX/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1215679

Please sign in to comment.