1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Check for <sys/sockio.h> and include it in uxnet.c if we find it. It's

necessary on Solaris if we want to use SIOCATMARK.  Using sockatmark() might
be preferable, but despite being notionally standard it's missing on
Solaris 9 and Mac OS X 10.3.9, whereas everyone seems to have SIOCATMARK
somewhere.

[originally from svn r5676]
This commit is contained in:
Ben Harris 2005-04-25 18:51:15 +00:00
parent b0d3cceb99
commit 4cb79827c6
2 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,8 @@ if test "X$GCC" = Xyes; then
CFLAGS="$CFLAGS -Wall -Werror"
fi
AC_CHECK_HEADERS([sys/sockio.h],,,[ ])
AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"])
AC_SUBST([all_targets])

View File

@ -22,6 +22,11 @@
#include "network.h"
#include "tree234.h"
/* Solaris needs <sys/sockio.h> for SIOCATMARK. */
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif
#ifndef X11_UNIX_PATH
# define X11_UNIX_PATH "/tmp/.X11-unix/X"
#endif