Revert "Blind attempt at a Cygwin fix"
This reverts commit e9282e953205a2f3125fc8d1052bc01cb77cd2a3, which blew up in a pretty spectacular way. Re-introduce the original code while we search for a real fix.
This commit is contained in:
parent
e9282e9532
commit
4631721166
6
configure
vendored
6
configure
vendored
@ -13075,12 +13075,6 @@ if test "$PORTNAME" = "cygwin"; then
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case " $LIBOBJS " in
|
|
||||||
*" win32security.$ac_objext "* ) ;;
|
|
||||||
*) LIBOBJS="$LIBOBJS win32security.$ac_objext"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
|
ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
|
||||||
|
@ -1596,7 +1596,6 @@ fi
|
|||||||
# Cygwin needs only a bit of that
|
# Cygwin needs only a bit of that
|
||||||
if test "$PORTNAME" = "cygwin"; then
|
if test "$PORTNAME" = "cygwin"; then
|
||||||
AC_LIBOBJ(dirmod)
|
AC_LIBOBJ(dirmod)
|
||||||
AC_LIBOBJ(win32security)
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_DECLS([sys_siglist], [], [],
|
AC_CHECK_DECLS([sys_siglist], [], [],
|
||||||
|
@ -212,6 +212,15 @@ write_stderr(const char *fmt,...)
|
|||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
/*
|
||||||
|
* On Cygwin, we don't yet have a reliable mechanism to detect when
|
||||||
|
* we're being run as a service, so fall back to the old (and broken)
|
||||||
|
* stderr test.
|
||||||
|
*/
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#define pgwin32_is_service() (isatty(fileno(stderr)))
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On Win32, we print to stderr if running on a console, or write to
|
* On Win32, we print to stderr if running on a console, or write to
|
||||||
* eventlog if running as a service
|
* eventlog if running as a service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user