git: <sys/{_iovec,_timespec,_timeval}.h>: Namespace cleanup.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Feb 9 11:13:26 PST 2017


commit 6ecfb2faec4c2a98c30079c69c9ba5d51cf549f7
Author: Sascha Wildner <saw at online.de>
Date:   Thu Feb 9 20:12:00 2017 +0100

    <sys/{_iovec,_timespec,_timeval}.h>: Namespace cleanup.
    
    Don't include the full <sys/types.h>.
    
    Include <machine/stdint.h> and derive the types which <sys/_timespec.h>
    and <sys/_timeval.h> need from the __* versions.
    
    <sys/_iovec.h> just needs __size_t, which is in <machine/stdint.h>.
    
    This commit also fixes a circular #include where <sys/_timeval.h>
    was including <sys/types.h> and vice versa.

Summary of changes:
 sys/sys/_iovec.h    |  2 +-
 sys/sys/_timespec.h |  7 ++++++-
 sys/sys/_timeval.h  | 14 +++++++++++---
 sys/sys/types.h     |  5 ++++-
 4 files changed, 22 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6ecfb2faec4c2a98c30079c69c9ba5d51cf549f7


-- 
DragonFly BSD source repository



More information about the Commits mailing list