[Glibc-bsd-commits] r4035 - in trunk/freebsd-buildutils/debian: . local/include/sys
Robert Millan
rmh at alioth.debian.org
Sun Jan 29 00:55:34 UTC 2012
Author: rmh
Date: 2012-01-29 00:55:33 +0000 (Sun, 29 Jan 2012)
New Revision: 4035
Modified:
trunk/freebsd-buildutils/debian/changelog
trunk/freebsd-buildutils/debian/local/include/sys/cdefs.h
Log:
Add __offsetof().
Modified: trunk/freebsd-buildutils/debian/changelog
===================================================================
--- trunk/freebsd-buildutils/debian/changelog 2012-01-29 00:55:11 UTC (rev 4034)
+++ trunk/freebsd-buildutils/debian/changelog 2012-01-29 00:55:33 UTC (rev 4035)
@@ -8,8 +8,9 @@
* Add a few more definitions to local sys/cdefs.h.
* Remove getline kludge. The second part was unneeded, the first one
caused version_gen.awk to hang.
+ * Add __offsetof().
- -- Robert Millan <rmh at debian.org> Sat, 28 Jan 2012 23:09:05 +0100
+ -- Robert Millan <rmh at debian.org> Sun, 29 Jan 2012 01:55:23 +0100
freebsd-buildutils (9.0-2) unstable; urgency=low
Modified: trunk/freebsd-buildutils/debian/local/include/sys/cdefs.h
===================================================================
--- trunk/freebsd-buildutils/debian/local/include/sys/cdefs.h 2012-01-29 00:55:11 UTC (rev 4034)
+++ trunk/freebsd-buildutils/debian/local/include/sys/cdefs.h 2012-01-29 00:55:33 UTC (rev 4035)
@@ -40,6 +40,7 @@
#define __dead2 __attribute__((__noreturn__))
#define __unused __attribute__((__unused__))
+#define __offsetof(type, field) __builtin_offsetof(type, field)
#define __printflike(fmtarg, firstvararg) \
__attribute__((__format__ (__printf__, fmtarg, firstvararg)))
More information about the Glibc-bsd-commits
mailing list