[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tests/test-getaddrinfo.c: compile failures on freebsd 6
From: |
Jim Meyering |
Subject: |
tests/test-getaddrinfo.c: compile failures on freebsd 6 |
Date: |
Thu, 01 May 2008 23:37:34 +0200 |
Here's a fix for the first:
test-getaddrinfo.c: In function 'simple':
test-getaddrinfo.c:67: error: 'EAI_NODATA' undeclared (first use in this
function)
test-getaddrinfo.c:67: error: (Each undeclared identifier is reported only
once
test-getaddrinfo.c:67: error: for each function it appears in.)
test-getaddrinfo.c:83: error: dereferencing pointer to incomplete type
I haven't looked at the latter yet, but it may be due to
trying to reference a type that's opaque on this system...
>From 7dee9d11c24046bf83546ee9ae5514423aac88e4 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 1 May 2008 23:34:53 +0200
Subject: [PATCH] avoid compilation error on FreeBSD 6
* tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
Signed-off-by: Jim Meyering <address@hidden>
---
tests/test-getaddrinfo.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c
index 8d487cb..801bae8 100644
--- a/tests/test-getaddrinfo.c
+++ b/tests/test-getaddrinfo.c
@@ -32,6 +32,10 @@
# define EAI_SERVICE 0
#endif
+#ifndef EAI_NODATA
+# define EAI_NODATA 0
+#endif
+
int simple (char *host, char *service)
{
char buf[BUFSIZ];
--
1.5.5.1.117.ga349
- tests/test-getaddrinfo.c: compile failures on freebsd 6,
Jim Meyering <=