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, 30 Jul 2019 14:31:58 +0200
parents 1c0e7f79e737
children 956e97003bad
files compat.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"