summaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
authorMarc G. Fournier1998-10-13 20:44:49 +0000
committerMarc G. Fournier1998-10-13 20:44:49 +0000
commit4fff1dada7bbaf36fea5330b641bc464566d48f2 (patch)
treea91566a1ded810be3713db6ac73e3d13b6afa10e /src/configure.in
parent5dc94a1b5ad9e61bdf48e7734843da0fc0735bfc (diff)
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.
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in
index 23b159f280a..94c75d75a09 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -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>],