libbacktrace: look for _pgmptr on Windows

Patch from Andres Freund:
	* configure.ac: Check for _pgmptr declaration.
	* fileline.c (fileline_initialize): Check for _pgmfptr before
	/proc/self/exec.
	* configure, config.h.in: Regenerate.
This commit is contained in:
Ian Lance Taylor
2023-07-31 16:14:58 -07:00
parent cdb64b688d
commit c1c86fa2f0
4 changed files with 41 additions and 6 deletions

View File

@@ -404,6 +404,9 @@ if test "$have_getexecname" = "yes"; then
AC_DEFINE(HAVE_GETEXECNAME, 1, [Define if getexecname is available.])
fi
# Check for _pgmptr variable, contains the executable filename on windows
AC_CHECK_DECLS([_pgmptr])
# Check for sysctl definitions.
AC_CACHE_CHECK([for KERN_PROC],