Module Name: src
Committed By: dholland
Date: Tue Aug 9 20:05:05 UTC 2011
Modified Files:
src/sys/sys: dirent.h
Log Message:
__typeof__, not __typeof, to avoid confusing passersby.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/sys/dirent.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/dirent.h
diff -u src/sys/sys/dirent.h:1.26 src/sys/sys/dirent.h:1.27
--- src/sys/sys/dirent.h:1.26 Tue Jul 5 07:32:33 2011
+++ src/sys/sys/dirent.h Tue Aug 9 20:05:04 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: dirent.h,v 1.26 2011/07/05 07:32:33 dholland Exp $ */
+/* $NetBSD: dirent.h,v 1.27 2011/08/09 20:05:04 dholland Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -91,7 +91,7 @@
* struct dirent
*/
#if __GNUC_PREREQ__(4, 0)
-#define _DIRENT_NAMEOFF(dp) __builtin_offsetof(__typeof(*dp), d_name)
+#define _DIRENT_NAMEOFF(dp) __builtin_offsetof(__typeof__(*dp), d_name)
#else
#define _DIRENT_NAMEOFF(dp) \
((char *)(void *)&(dp)->d_name - (char *)(void *)dp)