pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45039: net/libfetch minix support



>Number:         45039
>Category:       pkg
>Synopsis:       net/libfetch minix support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 10 12:30:00 +0000 2011
>Originator:     Thomas Cort
>Release:        N/A
>Organization:
Minix3
>Environment:
Minix 192.168.122.210 3.2.0 i686
>Description:
The software doesn't compile out of the box on the Minix operating system. The 
networking stack on Minix is more limited than most and doesn't define 
ECONNABORTED, ENETRESET, nor EHOSTDOWN. Additionally, HAVE_SA_LEN shouldn't be 
set for minix.
>How-To-Repeat:
Attempt to build libfetch on Minix.
>Fix:
diff --git a/net/libfetch/files/common.c b/net/libfetch/files/common.c
index ce88821..1d39484 100644
--- a/net/libfetch/files/common.c
+++ b/net/libfetch/files/common.c
@@ -150,11 +150,15 @@ fetch_syserr(void)
        case EADDRNOTAVAIL:
        case ENETDOWN:
        case ENETUNREACH:
+#if defined(ENETRESET)
        case ENETRESET:
+#endif
        case EHOSTUNREACH:
                fetchLastErrCode = FETCH_NETWORK;
                break;
+#if defined(ECONNABORTED)
        case ECONNABORTED:
+#endif
        case ECONNRESET:
                fetchLastErrCode = FETCH_ABORT;
                break;
@@ -162,7 +166,9 @@ fetch_syserr(void)
                fetchLastErrCode = FETCH_TIMEOUT;
                break;
        case ECONNREFUSED:
+#if defined(EHOSTDOWN)
        case EHOSTDOWN:
+#endif
                fetchLastErrCode = FETCH_DOWN;
                break;
 default:
diff --git a/net/libfetch/files/common.h b/net/libfetch/files/common.h
index 78c6bde..997adce 100644
--- a/net/libfetch/files/common.h
+++ b/net/libfetch/files/common.h
@@ -47,7 +47,7 @@
 
 #if !defined(__sun) && !defined(__hpux) && !defined(__INTERIX) && \
     !defined(__digital__) && !defined(__linux) && !defined(__MINT__) && \
-    !defined(__sgi)
+    !defined(__sgi) && !defined(__minix)
 #define HAVE_SA_LEN
 #endif
 



Home | Main Index | Thread Index | Old Index