git: Put all definitions of htonl() and friends under _BYTEORDER_FUNC_DEFINED.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Nov 23 00:42:51 PST 2020


commit d1168c910d834df2e1f91fc0b4a5dc06935aeaeb
Author: Sascha Wildner <saw at online.de>
Date:   Mon Nov 23 09:42:35 2020 +0100

    Put all definitions of htonl() and friends under _BYTEORDER_FUNC_DEFINED.
    
    This is the intended way to properly deal with non-__GNUC__ cases (see
    <machine/endian.h>). But it was only done properly in <arpa/inet.h> so
    far.
    
    Noticed-by: zrj

Summary of changes:
 sys/netinet/in.h | 9 ++-------
 sys/sys/param.h  | 9 ++-------
 2 files changed, 4 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d1168c910d834df2e1f91fc0b4a5dc06935aeaeb


-- 
DragonFly BSD source repository



More information about the Commits mailing list