projects/libpws

changeset 7:7fd61c245bbd

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.
author Guido Berhoerster <guido+libpws@berhoerster.name>
date Tue Jul 30 14:31:58 2019 +0200 (2019-07-30)
parents 1c0e7f79e737
children 956e97003bad
files compat.h
line diff
     1.1 --- a/compat.h	Thu Jan 10 09:35:16 2019 +0100
     1.2 +++ b/compat.h	Tue Jul 30 14:31:58 2019 +0200
     1.3 @@ -31,6 +31,7 @@
     1.4  
     1.5  /* for glibc endian.h */
     1.6  #define	_BSD_SOURCE
     1.7 +#define	_DEFAULT_SOURCE
     1.8  
     1.9  #if	!defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H)
    1.10  #include "compat/endian.h"