File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed
Misc/NEWS.d/next/Core and Builtins Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change
1
+ Check for the existence of the "sys/auxv.h" header in :mod: `faulthandler ` to
2
+ avoid compilation problems in systems where this header doesn't exist. Patch
3
+ by Pablo Galindo
Original file line number Diff line number Diff line change 21
21
# define FAULTHANDLER_USE_ALT_STACK
22
22
#endif
23
23
24
- #if defined(FAULTHANDLER_USE_ALT_STACK ) && defined(HAVE_LINUX_AUXVEC_H )
25
- # include <linux/auxvec.h>
26
- # include <sys/auxv.h>
24
+ #if defined(FAULTHANDLER_USE_ALT_STACK ) && defined(HAVE_LINUX_AUXVEC_H ) && defined( HAVE_SYS_AUXV_H )
25
+ # include <linux/auxvec.h> // AT_MINSIGSTKSZ
26
+ # include <sys/auxv.h> // getauxval()
27
27
#endif
28
28
29
29
/* Allocate at maximum 100 MiB of the stack to raise the stack overflow */
Original file line number Diff line number Diff line change @@ -8042,7 +8042,7 @@ sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
8042
8042
sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
8043
8043
libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
8044
8044
linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
8045
- sys/endian.h sys/sysmacros.h linux/auxvec.h linux/memfd.h linux/wait.h sys/memfd.h sys/mman.h
8045
+ sys/endian.h sys/sysmacros.h linux/auxvec.h sys/auxv.h linux/memfd.h linux/wait.h sys/memfd.h sys/mman.h
8046
8046
do :
8047
8047
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8048
8048
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Original file line number Diff line number Diff line change @@ -2228,7 +2228,7 @@ sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
2228
2228
sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
2229
2229
libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
2230
2230
linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
2231
- sys/endian.h sys/sysmacros.h linux/auxvec.h linux/memfd.h linux/wait.h sys/memfd.h sys/mman.h )
2231
+ sys/endian.h sys/sysmacros.h linux/auxvec.h sys/auxv.h linux/memfd.h linux/wait.h sys/memfd.h sys/mman.h )
2232
2232
AC_HEADER_DIRENT
2233
2233
AC_HEADER_MAJOR
2234
2234
Original file line number Diff line number Diff line change 1113
1113
/* Define to 1 if you have the <sys/audioio.h> header file. */
1114
1114
#undef HAVE_SYS_AUDIOIO_H
1115
1115
1116
+ /* Define to 1 if you have the <sys/auxv.h> header file. */
1117
+ #undef HAVE_SYS_AUXV_H
1118
+
1116
1119
/* Define to 1 if you have the <sys/bsdtty.h> header file. */
1117
1120
#undef HAVE_SYS_BSDTTY_H
1118
1121
You can’t perform that action at this time.
0 commit comments