mirror of https://github.com/postgres/postgres
From: Peter Gucwa <pg@softcomputer.com>
Here are patches needed to complie under AIX 4.2. I changed configure.in, pqcomm.c, config.h.in, and fe-connect.c. Also I had to install flex because lex did not want to translate pgc.l.
This commit is contained in:
parent
5dc94a1b5a
commit
4fff1dada7
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.56 1998/10/07 03:45:12 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.57 1998/10/13 20:44:40 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -653,8 +653,8 @@ StreamServerPort(char *hostName, short portName, int *fdP)
|
|||
int
|
||||
StreamConnection(int server_fd, Port *port)
|
||||
{
|
||||
int len,
|
||||
addrlen;
|
||||
int len;
|
||||
SOCKET_SIZE_TYPE addrlen;
|
||||
int family = port->raddr.sa.sa_family;
|
||||
|
||||
/* accept connection (and fill in the client (remote) address) */
|
||||
|
@ -725,8 +725,8 @@ StreamClose(int sock)
|
|||
int
|
||||
StreamOpen(char *hostName, short portName, Port *port)
|
||||
{
|
||||
int len,
|
||||
err;
|
||||
SOCKET_SIZE_TYPE len;
|
||||
int err;
|
||||
struct hostent *hp;
|
||||
extern int errno;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -548,6 +548,15 @@ AC_TYPE_SIZE_T
|
|||
AC_HEADER_TIME
|
||||
AC_STRUCT_TM
|
||||
|
||||
AC_MSG_CHECKING(for type of last arg to accept)
|
||||
AC_TRY_COMPILE([#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
],
|
||||
[int a = accept(1, (struct sockaddr *) 0, (size_t *) 0);],
|
||||
[AC_DEFINE(SOCKET_SIZE_TYPE, size_t) AC_MSG_RESULT(size_t)],
|
||||
[AC_DEFINE(SOCKET_SIZE_TYPE, int) AC_MSG_RESULT(int)])
|
||||
|
||||
dnl Check for any "odd" conditions
|
||||
AC_MSG_CHECKING(for int timezone)
|
||||
AC_TRY_LINK([#include <time.h>],
|
||||
|
|
|
@ -260,6 +260,9 @@ extern void srandom(int seed);
|
|||
/* Set to 1 if type "long long int" works and is 64 bits */
|
||||
#undef HAVE_LONG_LONG_INT_64
|
||||
|
||||
/* Define as the base type of the last arg to accept */
|
||||
#undef SOCKET_SIZE_TYPE
|
||||
|
||||
/*
|
||||
* Code below this point should not require changes
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.84 1998/10/01 01:40:19 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.85 1998/10/13 20:44:49 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -503,7 +503,7 @@ connectDB(PGconn *conn)
|
|||
struct hostent *hp;
|
||||
StartupPacket sp;
|
||||
AuthRequest areq;
|
||||
int laddrlen;
|
||||
SOCKET_SIZE_TYPE laddrlen;
|
||||
int portno,
|
||||
family;
|
||||
char beresp;
|
||||
|
|
Loading…
Reference in New Issue