inn patches for MacOS X Server
Miro Jurisic
meeroh at meeroh.org
Mon Nov 22 07:07:46 UTC 1999
The following 5 patches should make inn build under MacOS X Server.
Haven't gotten around to configuring it and testing it yet.
Hth,
meeroh
*** innfeed/sysconfig.h.old Mon Nov 22 01:06:50 1999
--- innfeed/sysconfig.h Mon Nov 22 01:08:20 1999
***************
*** 256,261 ****
--- 256,272 ----
#define _BSD 44
#endif
+ /*
+ ** Mac OS X Server
+ **
+ ** Mac OS X Server already has inet_aton
+ **
+ */
+
+ #if defined(__APPLE__)
+ #define DROP_INET_ATON 1
+ #endif
+
#if ! defined (USE_SIGSET) && ! defined(USE_SIGVEC)
#define USE_SIGACTION
#endif
*** innfeed/inet_addr.c.old Mon Nov 22 01:09:16 1999
--- innfeed/inet_addr.c Mon Nov 22 01:46:17 1999
***************
*** 63,68 ****
--- 63,69 ----
#include <netinet/in.h>
#include <arpa/inet.h>
#include <ctype.h>
+ #include "sysconfig.h"
#if 0
#include "../conf/portability.h"
#endif
***************
*** 88,93 ****
--- 89,95 ----
}
#endif
+ #ifndef DROP_INET_ATON
/*
* Check whether "cp" is a valid ascii representation
* of an Internet address and convert to a binary address.
***************
*** 188,190 ****
--- 190,194 ----
addr->s_addr = htonl(val);
return (1);
}
+
+ #endif /* !DROP_INET_ATON */
*** configure.in.old Sun Nov 21 22:41:06 1999
--- configure.in Mon Nov 22 02:01:10 1999
***************
*** 423,428 ****
--- 423,435 ----
fi
AC_SUBST(ac_cv_subst_int32_t)
+ dnl -traditional-cpp is needed for gcc even when we are not just precompiling
+ case "$CPP" in
+ *-traditional-cpp*)
+ CFLAGS="-traditional-cpp $CFLAGS"
+ ;;
+ esac
+
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
*** config.guess.old Fri Jun 26 22:49:51 1998
--- config.guess Sun Nov 21 21:57:31 1999
***************
*** 742,747 ****
--- 742,753 ----
echo mips-unknown-sysv${UNAME_RELEASE}
fi
exit 0 ;;
+ Power*Macintosh:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit 0 ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit 0 ;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
*** config.sub.old Thu Jun 25 01:56:45 1998
--- config.sub Sun Nov 21 22:01:02 1999
***************
*** 716,722 ****
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
! | -mingw32* | -linux-gnu* | -uxpv*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-linux*)
--- 716,722 ----
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
! | -mingw32* | -linux-gnu* | -uxpv* | -rhapsody* )
# Remember, each alternative MUST END IN *, to match a version number.
;;
-linux*)
More information about the inn-patches
mailing list