comparison compat.h @ 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 97097b4b6bfb
children
comparison
equal deleted inserted replaced
6:1c0e7f79e737 7:7fd61c245bbd
29 /* for FreeBSD getline() */ 29 /* for FreeBSD getline() */
30 #define _WITH_GETLINE 30 #define _WITH_GETLINE
31 31
32 /* for glibc endian.h */ 32 /* for glibc endian.h */
33 #define _BSD_SOURCE 33 #define _BSD_SOURCE
34 #define _DEFAULT_SOURCE
34 35
35 #if !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) 36 #if !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H)
36 #include "compat/endian.h" 37 #include "compat/endian.h"
37 #endif /* !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) */ 38 #endif /* !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) */
38 39