@@ -16394,11 +16394,9 @@ $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16394
16394
fi
16395
16395
16396
16396
16397
- # Make sure there's a declaration for sigwait(), then make sure
16398
- # that it conforms to the POSIX standard (there seem to still be
16399
- # some platforms out there with pre-POSIX sigwait()). On Solaris,
16400
- # _POSIX_PTHREAD_SEMANTICS affects the result, but we already
16401
- # added that to CPPFLAGS.
16397
+ # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
16398
+ # by calling it, 2009-04-02
16399
+ # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
16402
16400
# The Clang compiler raises a warning for an undeclared identifier that matches
16403
16401
# a compiler builtin function. All extant Clang versions are affected, as of
16404
16402
# Clang 3.6.0. Test a builtin known to every version. This problem affects the
@@ -16487,62 +16485,6 @@ case $ac_cv_c_decl_report in
16487
16485
*) ac_c_decl_warn_flag= ;;
16488
16486
esac
16489
16487
16490
- ac_fn_c_check_decl "$LINENO" "sigwait" "ac_cv_have_decl_sigwait" "#include <signal.h>
16491
- "
16492
- if test "x$ac_cv_have_decl_sigwait" = xyes; then :
16493
- ac_have_decl=1
16494
- else
16495
- ac_have_decl=0
16496
- fi
16497
-
16498
- cat >>confdefs.h <<_ACEOF
16499
- #define HAVE_DECL_SIGWAIT $ac_have_decl
16500
- _ACEOF
16501
-
16502
- if test "x$ac_cv_have_decl_sigwait" = xyes; then
16503
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX-conforming sigwait declaration" >&5
16504
- $as_echo_n "checking for POSIX-conforming sigwait declaration... " >&6; }
16505
- if ${pgac_cv_have_posix_decl_sigwait+:} false; then :
16506
- $as_echo_n "(cached) " >&6
16507
- else
16508
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509
- /* end confdefs.h. */
16510
-
16511
- #include <signal.h>
16512
- int sigwait(const sigset_t *set, int *sig);
16513
-
16514
- int
16515
- main ()
16516
- {
16517
-
16518
- ;
16519
- return 0;
16520
- }
16521
- _ACEOF
16522
- if ac_fn_c_try_compile "$LINENO"; then :
16523
- pgac_cv_have_posix_decl_sigwait=yes
16524
- else
16525
- pgac_cv_have_posix_decl_sigwait=no
16526
- fi
16527
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16528
- fi
16529
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_posix_decl_sigwait" >&5
16530
- $as_echo "$pgac_cv_have_posix_decl_sigwait" >&6; }
16531
- fi
16532
- if test "x$pgac_cv_have_posix_decl_sigwait" = xyes; then
16533
-
16534
- $as_echo "#define HAVE_POSIX_DECL_SIGWAIT 1" >>confdefs.h
16535
-
16536
- else
16537
- # On non-Windows, libpq requires POSIX sigwait() for thread safety.
16538
- if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
16539
- as_fn_error $? "POSIX-conforming sigwait is required to enable thread safety." "$LINENO" 5
16540
- fi
16541
- fi
16542
-
16543
- # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
16544
- # by calling it, 2009-04-02
16545
- # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
16546
16488
if test "$PORTNAME" != "solaris"; then :
16547
16489
16548
16490
for ac_func in posix_fadvise
0 commit comments