fix inadequate parens in macro (my fault originally)

This commit is contained in:
dholland 2015-02-26 02:05:54 +00:00
parent 01ea4fedd8
commit d00f46d557
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dirent.h,v 1.28 2011/09/27 01:40:32 christos Exp $ */
/* $NetBSD: dirent.h,v 1.29 2015/02/26 02:05:54 dholland Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -91,7 +91,7 @@ struct dirent {
* 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)