Apply patch: ncpfs.offsetof.patch

This commit is contained in:
Mario Fetka
2026-04-28 20:56:04 +02:00
parent 2c86c4e4e4
commit 4420173152
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
linux/stddef.h was included by accident. use private offsetof macro
---
sutil/ncpm_common.h | 1 +
1 file changed, 1 insertion(+)
Index: ncpfs-2.2.6/sutil/ncpm_common.h
===================================================================
--- ncpfs-2.2.6.orig/sutil/ncpm_common.h
+++ ncpfs-2.2.6/sutil/ncpm_common.h
@@ -122,5 +122,6 @@ int proc_aftermount(const struct ncp_mou
int proc_ncpm_umount(const char* dir);
#define UNUSED(x) x __attribute__((unused))
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif /* __NCPM_COMMON_H__ */

View File

@@ -122,5 +122,6 @@ int proc_aftermount(const struct ncp_mount_info* info, NWCONN_HANDLE* conn);
int proc_ncpm_umount(const char* dir);
#define UNUSED(x) x __attribute__((unused))
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif /* __NCPM_COMMON_H__ */