aboutsummaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 66f6f76..cdcce39 100644
--- a/include/common.h
+++ b/include/common.h
@@ -26,7 +26,6 @@
#include "sqfs/dir.h"
#include "sqfs/io.h"
-#include "util/util.h"
#include "compat.h"
#include "fstree.h"
#include "tar.h"
@@ -73,6 +72,9 @@ typedef struct {
bool quiet;
} sqfs_writer_cfg_t;
+#define container_of(ptr, type, member) \
+ ((type *)((char *)ptr - offsetof(type, member)))
+
/*
High level helper function to serialize an entire file system tree to
a squashfs inode table and directory table.