mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-08 07:42:09 +03:00
avoid breakage if somebody wrongly defines empty feature test macros
This commit is contained in:
parent
18c0e02e2b
commit
b367ab15fa
@ -121,8 +121,8 @@ struct protoent *getprotobyname (const char *);
|
||||
struct protoent *getprotobynumber (int);
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \
|
||||
|| (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE < 200809L) \
|
||||
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 700)
|
||||
|| (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \
|
||||
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
|
||||
struct hostent *gethostbyname (const char *);
|
||||
struct hostent *gethostbyaddr (const void *, socklen_t, int);
|
||||
#ifdef __GNUC__
|
||||
|
@ -149,7 +149,7 @@ void swab(const void *__restrict, void *__restrict, ssize_t);
|
||||
#endif
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) \
|
||||
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 700)
|
||||
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
|
||||
int usleep(unsigned);
|
||||
unsigned ualarm(unsigned, unsigned);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user