[Nagios-devel] Patch for socklen_t

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Patch for socklen_t

Post by Guest »

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C3A934.7B5A87F0
Content-Type: text/plain; charset="UTF-8"

Ethan,

Here's a fix for the reported socklen_t problems found on Tru64 and Mac OS
X. I've managed to test it on Solaris 2.6 which also had the same problem.

Ton



This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.


------_=_NextPart_000_01C3A934.7B5A87F0
Content-Type: application/octet-stream;
name="nrpe_socklen_fix.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="nrpe_socklen_fix.patch"

*** Makefile.in Wed Nov 12 15:17:45 2003
--- Makefile.in.new Wed Nov 12 15:01:29 2003
***************
*** 10,16 ****
SRC_COMMON=3D./common/
=20
all:
! cd $(SRC_BASE); $(MAKE) ; cd ..
=20
@echo ""
@echo "*** Compile finished ***"
--- 10,16 ----
SRC_COMMON=3D./common/
=20
all:
! cd $(SRC_BASE); $(MAKE)
=20
@echo ""
@echo "*** Compile finished ***"
*** configure.in Wed Nov 12 11:40:17 2003
--- configure.in.new Wed Nov 12 15:12:27 2003
***************
*** 26,32 ****
AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
! AC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h getopt.h grp.h =
inttypes.h netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h =
unistd.h arpa/inet.h netinet/in.h sys/types.h sys/time.h sys/resource.h =
sys/wait.h sys/socket.h sys/stat.h)
=20
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
--- 26,32 ----
AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
! AC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h getopt.h grp.h =
inttypes.h netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h =
unistd.h arpa/inet.h netinet/in.h sys/types.h sys/time.h sys/resource.h =
sys/wait.h sys/socket.h sys/stat.h socket.h)
=20
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
***************
*** 95,100 ****
--- 95,113 ----
[AC_DEFINE(SOCKET_SIZE_TYPE, size_t) AC_MSG_RESULT(size_t)],
[AC_DEFINE(SOCKET_SIZE_TYPE, int) AC_MSG_RESULT(int)])
=20
+=20
+ dnl Stolen from Python code: [email protected]
+ AC_CHECK_TYPE(socklen_t,,
+ AC_DEFINE(socklen_t,int,
+ Define to `int' if does not define.),[
+ #ifdef HAVE_SYS_TYPES_H
+ #include
+ #endif
+ #ifdef HAVE_SYS_SOCKET_H
+ #include
+ #endif
+ ])
+=20
dnl Does user want to check for SSL?
AC_ARG_ENABLE(ssl,--enable-ssl enables native SSL support,[
if test x$enableval =3D xyes; then
*** common/config.h.in Wed Nov 12 15:18:07 2003
--- common/config.h.in.new Wed Nov 12 15:11:12 2003
***************
*** 163,169 ****
#include
#endif
=20
! #undef HAVE_SOCKET
#ifdef HAVE_SOCKET_H
#include
#endif
--- 163,172 ----
#include
#endif
=20
! /* Define to 'int' if does not define */
! #undef socklen_t
!=20
! #undef HAVE_SOCKET_H
#ifdef HAVE_SOCKET_H
#include
#endif

------_=_NextPart_000_01C3A934.7B5A87F0--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked