From b367ab15fa68a59c8532f8d06f5d1b01aa5a5c7a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 1 Nov 2012 03:49:43 -0400 Subject: [PATCH] avoid breakage if somebody wrongly defines empty feature test macros --- include/netdb.h | 4 ++-- include/unistd.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/netdb.h b/include/netdb.h index ff691e0a..3cda7114 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -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__ diff --git a/include/unistd.h b/include/unistd.h index 9ac4765a..bb741e4b 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -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 -- 2.25.1