svn commit: r325090 - in stable: 10/include 11/include

Cy Schubert cy at FreeBSD.org
Sun Oct 29 04:33:52 UTC 2017


Author: cy
Date: Sun Oct 29 04:33:50 2017
New Revision: 325090
URL: https://svnweb.freebsd.org/changeset/base/325090

Log:
  Sync (make same) the offsetof macro definition in include/ with the
  definition of the same in sys/sys/. The problem was discovered while
  working on implementing a new C11 gets_s() for libc. (The new gets_s()
  requires rsize_t found in include/stddef.h.) The solution to sync the two
  definitions was suggested by ed@ while discussing D12667.
  
  Suggested by:	ed

Modified:
  stable/10/include/stddef.h
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/include/stddef.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/10/include/stddef.h
==============================================================================
--- stable/10/include/stddef.h	Sun Oct 29 01:21:52 2017	(r325089)
+++ stable/10/include/stddef.h	Sun Oct 29 04:33:50 2017	(r325090)
@@ -67,6 +67,6 @@ typedef	__max_align_t	max_align_t;
 #endif
 #endif
 
-#define	offsetof(type, member)	__offsetof(type, member)
+#define	offsetof(type, field)	__offsetof(type, field)
 
 #endif /* _STDDEF_H_ */


More information about the svn-src-all mailing list