This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix sysdeps/posix/getaddrinfo.c


On Fri, Apr 25, 2003 at 09:06:39AM -0400, Daniel Jacobowitz wrote:
> There's some uses of "bool" and "true" which aren't available, at least as
> of gcc 3.2.3.

The fix is trivial:

2003-04-25  Jakub Jelinek  <jakub at redhat dot com>

	* sysdeps/posix/getaddrinfo.c: Include stdbool.h.

--- libc/sysdeps/posix/getaddrinfo.c	25 Apr 2003 14:53:36 -0000	1.1.1.18
+++ libc/sysdeps/posix/getaddrinfo.c	25 Apr 2003 15:47:10 -0000	1.8
@@ -52,6 +52,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
 #include <sys/utsname.h>
 #include <net/if.h>
 #include <nsswitch.h>
+#include <stdbool.h>
 
 #define GAIH_OKIFUNSPEC 0x0100
 #define GAIH_EAI        ~(GAIH_OKIFUNSPEC)

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]