This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Fix sysdeps/posix/getaddrinfo.c
- From: Jakub Jelinek <jakub at redhat dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 25 Apr 2003 18:43:51 +0200
- Subject: [PATCH] Fix sysdeps/posix/getaddrinfo.c
- References: <20030425130638.GA7351@nevyn.them.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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