From: SourceForge.net <no...@so...> - 2003-02-11 12:39:35
|
Bugs item #667726, was opened at 2003-01-14 13:20 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=667726&group_id=12694 Category: agent Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: a minor fix for IRIX-6.5 Initial Comment: Compilation errors occur if <unistd.h> is included in ipAddr.c on IRIX 6.5. Another way to avoid errors is that -D_STANDALONE or -U_KERNEL is included in CFLAGS while compiling ipAddr.c. -- Ayamura KIKUCHI --- net-snmp-5.0.7/agent/mibgroup/mibII/ipAddr.c.orig Mon Dec 16 16:39:01 2002 +++ net-snmp-5.0.7/agent/mibgroup/mibII/ipAddr.c Tue Jan 14 22:02:08 2003 @@ -13,7 +13,9 @@ #include <sys/param.h> #endif #if HAVE_UNISTD_H +#ifndef irix6 #include <unistd.h> +#endif #endif #if HAVE_SYS_SOCKET_H #include <sys/socket.h> ---------------------------------------------------------------------- >Comment By: Dave Shield (dts12) Date: 2003-02-11 12:46 Message: Logged In: YES user_id=88893 So presumably a patch such as #if HAVE_UNISTD_H + #ifdef irix6 + #define _STANDALONE + #endif #include <unistd.h> #endif would work as well? <Sigh> Aren't standards wonderful ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=667726&group_id=12694 |