8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00

Added a test for <sys/socket.h> needed in remote/inet.cpp.

This commit is contained in:
eku 2003-02-18 12:38:27 +00:00
parent 4953acc58c
commit 6776adb23e
4 changed files with 15 additions and 7 deletions

View File

@ -1,4 +1,4 @@
dnl $Id: configure.in,v 1.118 2003-02-18 05:24:31 aafemt Exp $
dnl $Id: configure.in,v 1.119 2003-02-18 12:38:22 eku Exp $
dnl ############################# INITIALISATION ###############################
@ -288,7 +288,7 @@ AC_CHECK_HEADERS(rpc/xdr.h,,,[#include <rpc/rpc.h>])
AC_CHECK_HEADERS(aio.h)
AC_CHECK_HEADERS(mntent.h mnttab.h sys/mntent.h sys/mnttab.h)
AC_CHECK_HEADERS(sys/ipc.h sys/file.h)
AC_CHECK_HEADERS(winsock2.h)
AC_CHECK_HEADERS(socket.h sys/socket.h sys/sockio.h winsock2.h)
dnl Check for libraries
AC_CHECK_LIB(dl, main)

View File

@ -111,6 +111,9 @@
#undef HAVE_SYS_MNTTAB_H
#undef HAVE_SYS_IPC_H
#undef HAVE_SYS_FILE_H
#undef HAVE_SOCKET_H
#undef HAVE_SYS_SOCKET_H
#undef HAVE_SYS_SOCKIO_H
#undef HAVE_WINSOCK2_H

View File

@ -1,4 +1,4 @@
#ident "$Id: config.h.in,v 1.70 2003-02-18 05:24:35 aafemt Exp $"
#ident "$Id: config.h.in,v 1.71 2003-02-18 12:38:24 eku Exp $"
/*
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete ports:
@ -62,6 +62,9 @@
#undef HAVE_SYS_MNTTAB_H
#undef HAVE_SYS_IPC_H
#undef HAVE_SYS_FILE_H
#undef HAVE_SOCKET_H
#undef HAVE_SYS_SOCKET_H
#undef HAVE_SYS_SOCKIO_H
#undef HAVE_WINSOCK2_H

View File

@ -41,10 +41,13 @@
*
*/
/*
$Id: inet.cpp,v 1.52 2003-02-17 19:33:53 brodsom Exp $
$Id: inet.cpp,v 1.53 2003-02-18 12:38:26 eku Exp $
*/
#include "firebird.h"
#include "../jrd/ib_stdio.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <errno.h>
#include <string.h>
#include <stdlib.h>
@ -78,8 +81,8 @@ $Id: inet.cpp,v 1.52 2003-02-17 19:33:53 brodsom Exp $
#include <grp.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> /* for socket() */
#endif
#ifdef HAVE_UNISTD_H
@ -99,7 +102,6 @@ $Id: inet.cpp,v 1.52 2003-02-17 19:33:53 brodsom Exp $
#if !(defined VMS || defined WIN_NT)
#include <netdb.h>
#include <sys/param.h>
#endif
#ifdef DARWIN