# HG changeset patch # User Guido Berhoerster # Date 1564489918 -7200 # Node ID 7fd61c245bbd987be5b7fed5b21d4700ed257923 # Parent 1c0e7f79e737e440fdd5977ed22b443a7bfcddef Define _DEFAULT_SOURCE for glibc >= 2.20 The _BSD_SOURCE feature macro has ben deprecated in favor of _DEFAULT_SOURCE starting with glibc >= 2.20. diff -r 1c0e7f79e737 -r 7fd61c245bbd compat.h --- a/compat.h Thu Jan 10 09:35:16 2019 +0100 +++ b/compat.h Tue Jul 30 14:31:58 2019 +0200 @@ -31,6 +31,7 @@ /* for glibc endian.h */ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #if !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) #include "compat/endian.h"