Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109894201
D34226.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
484 B
Referenced Files
None
Subscribers
None
D34226.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h
--- a/sys/compat/linuxkpi/common/include/linux/compiler.h
+++ b/sys/compat/linuxkpi/common/include/linux/compiler.h
@@ -111,4 +111,6 @@
#define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
#define __must_be_array(a) __same_type(a, &(a)[0])
+#define sizeof_field(_s, _m) sizeof(((_s *)0)->_m)
+
#endif /* _LINUXKPI_LINUX_COMPILER_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 9:31 PM (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16601526
Default Alt Text
D34226.diff (484 B)
Attached To
Mode
D34226: LinuxKPI: add sizeof_field()
Attached
Detach File
Event Timeline
Log In to Comment