Commit 4ca74e81 authored by Brian Cameron's avatar Brian Cameron Committed by Brian Cameron

Update check for socklen_t so it includes sys/socket.h. Some platforms

2005-11-11  Brian Cameron  <brian.cameron@sun.com>

        * configure.ac: Update check for socklen_t so it
          includes sys/socket.h.  Some platforms define
          socklen_t there.  Patch provided by
          dmacks@netspace.org.  Fixes bug #320930.
parent b97d599e
2005-11-11 Brian Cameron <brian.cameron@sun.com>
* configure.ac: Update check for socklen_t so it
includes sys/socket.h. Some platforms define
socklen_t there. Patch provided by
dmacks@netspace.org. Fixes bug #320930.
2005-11-09 Brian Cameron <brian.cameron@sun.com>
* daemon/getvt.c: Oops, fix again.
......
......@@ -120,7 +120,17 @@ dnl AC_ARG_PROGRAM
AM_PROG_LIBTOOL
AC_PATH_XTRA
AC_CHECK_TYPE(socklen_t,size_t)
dnl socklen_t may be declared, but not in a "standard" C header location
AC_CHECK_HEADERS(sys/socket.h)
AC_CHECK_TYPE(socklen_t,,
AC_DEFINE(socklen_t,size_t,Compatibility type),
[AC_INCLUDES_DEFAULT]
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
)
AC_CHECK_FUNCS([setresuid setenv unsetenv clearenv])
GNOME_COMPILE_WARNINGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment