libbsd/include/bsd
Guillem Jover 1f8a3f7bcc Fix function declaration protection for glibc already providing them
On non-glibc based systems we cannot unconditionally use the
__GLIBC_PREREQ macro as it gets expanded before evaluation. Instead,
if it is undefined, define it to 0.

We should also always declare these functions on non-glibc based
systems. And on systems with a new enough glibc, which provides these
functions, we should still provide the declarations if _GNU_SOURCE
is *not* defined.

Reported-by: Jörg Krause <joerg.krause@embedded.rocks>
2018-03-13 02:28:53 +01:00
..
netinet Namespace header inclusion protection macros 2017-06-19 03:17:21 +02:00
sys Fix function declaration protection for glibc already providing them 2018-03-13 02:28:53 +01:00
bitstring.h Add <bitstring.h> for compatibility with NetBSD and OpenBSD 2012-05-29 04:51:16 +02:00
bsd.h Turn <bsd/bsd.h> inert when using LIBBSD_OVERLAY 2015-12-14 00:58:59 +01:00
err.h Use the non-overlayed libbsd headers when we need our own definitions 2015-12-14 00:58:51 +01:00
getopt.h Add email address to my name 2012-05-29 04:51:45 +02:00
libutil.h Remove <features.h> inclusion from <bsd/libutil.h> 2018-03-13 02:28:53 +01:00
md5.h Handle systems missing <sys/cdefs.h> 2018-03-13 02:28:53 +01:00
nlist.h Handle systems missing <sys/cdefs.h> 2018-03-13 02:28:53 +01:00
readpassphrase.h Handle systems missing <sys/cdefs.h> 2018-03-13 02:28:53 +01:00
stdio.h Support GCC deprecated attribute for GCC older than 4.5 2017-06-05 05:51:52 +02:00
stdlib.h Fix function declaration protection for glibc already providing them 2018-03-13 02:28:53 +01:00
string.h Fix function declaration protection for glibc already providing them 2018-03-13 02:28:53 +01:00
stringlist.h Handle systems missing <sys/cdefs.h> 2018-03-13 02:28:53 +01:00
timeconv.h Handle systems missing <sys/cdefs.h> 2018-03-13 02:28:53 +01:00
unistd.h Use the non-overlayed libbsd headers when we need our own definitions 2015-12-14 00:58:51 +01:00
vis.h Handle systems missing <sys/cdefs.h> 2018-03-13 02:28:53 +01:00
wchar.h Handle systems missing <sys/cdefs.h> 2018-03-13 02:28:53 +01:00