Attached is a patch to find out fdatasync in libposix4 for Solaris2.
The function fdatasync resides in libposix4 on Solaris2. Configure does not
try to find the function in libposix4 and then misses fdatasync.
Kenji Sugita
sugita@sra.co.jp
Index: configure.in
===================================================================
RCS file: /home/mgr/sugita/jobs/cvs-master/pgsql/src/7.1.3/build/configure.in,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 configure.in
--- configure.in 16 Aug 2001 18:36:31 -0000 1.1.1.1
+++ configure.in 10 Sep 2001 14:53:56 -0000
@@ -656,6 +656,10 @@ if test "$PORTNAME" != "aix" -a "$PORTNA
then
AC_CHECK_LIB(bsd, main)
fi
+if test "$PORTNAME" = "solaris"
+then
+ AC_CHECK_LIB(posix4, main)
+fi
AC_CHECK_LIB(util, setproctitle)
AC_CHECK_LIB(m, main)
AC_CHECK_LIB(dl, main)