git: Clean up the namespace in a number of standard headers.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Mar 1 11:55:01 PST 2017


commit 89393d9335a96395aea8ea3ff3f05eedd96cebb7
Author: Sascha Wildner <saw at online.de>
Date:   Wed Mar 1 20:36:39 2017 +0100

    Clean up the namespace in a number of standard headers.
    
    * In most cases, instead of the full load of <sys/types.h>,
      include <machine/stdint.h> which defines the __-types that
      <monetary.h>, <pwd.h>, <search.h>, <strings.h> and <wordexp.h>
      only need.
    
    * Additionally, extend the visibility of the size_t definition
      and adjust WRDE_NOSYS's visibility because it was only in the
      standard up to Issue 6.
    
    * In <time.h>, include <sys/stdint.h> to get at __pid_t too.
    
    * Likewise, include <sys/stdint.h> in <sys/wait.h> and provide
      a definition of pid_t as required.

Summary of changes:
 include/monetary.h |  2 +-
 include/pwd.h      | 12 ++++++------
 include/search.h   |  2 +-
 include/strings.h  |  2 +-
 include/time.h     |  2 +-
 include/wordexp.h  |  6 +++---
 sys/sys/wait.h     |  7 +++++--
 7 files changed, 18 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/89393d9335a96395aea8ea3ff3f05eedd96cebb7


-- 
DragonFly BSD source repository



More information about the Commits mailing list