git: <sys/errno.h>: Use __BSD_VISIBLE instead of !_POSIX_SOURCE.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Aug 13 12:24:38 PDT 2016


commit 329111df7bb1e6c835b3e1835b384ecf2dd3aaf7
Author: Sascha Wildner <saw at online.de>
Date:   Sat Aug 13 21:24:19 2016 +0200

    <sys/errno.h>: Use __BSD_VISIBLE instead of !_POSIX_SOURCE.
    
    _POSIX_SOURCE is no longer set since it was superseded by
    _POSIX_C_SOURCE. In other words, #ifndef _POSIX_SOURCE is
    always true, unless IEEE Std 1003.1-1988 is explicitly
    requested.
    
    While here, clean up the visibility of all errno defines.
    Those not mentioned in any standard are __BSD_VISIBLE now.
    We can further restrict the standard ones at some later
    point.

Summary of changes:
 sys/sys/errno.h | 32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/329111df7bb1e6c835b3e1835b384ecf2dd3aaf7


-- 
DragonFly BSD source repository


More information about the Commits mailing list