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 23
23
# define FAULTHANDLER_USE_ALT_STACK
24
24
#endif
25
25
26
- #if defined(FAULTHANDLER_USE_ALT_STACK ) && defined(HAVE_LINUX_AUXVEC_H )
27
- # include <linux/auxvec.h>
28
- # include <sys/auxv.h>
26
+ #if defined(FAULTHANDLER_USE_ALT_STACK ) && defined(HAVE_LINUX_AUXVEC_H ) && defined( HAVE_SYS_AUXV_H )
27
+ # include <linux/auxvec.h> // AT_MINSIGSTKSZ
28
+ # include <sys/auxv.h> // getauxval()
29
29
#endif
30
30
31
31
/* Allocate at maximum 100 MiB of the stack to raise the stack overflow */
Original file line number Diff line number Diff line change @@ -8101,7 +8101,7 @@ sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
8101
8101
sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
8102
8102
libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
8103
8103
linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
8104
- sys/endian.h sys/sysmacros.h linux/auxvec.h linux/memfd.h linux/wait.h sys/memfd.h \
8104
+ sys/endian.h sys/sysmacros.h linux/auxvec.h sys/auxv.h linux/memfd.h linux/wait.h sys/memfd.h \
8105
8105
sys/mman.h sys/eventfd.h
8106
8106
do :
8107
8107
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Original file line number Diff line number Diff line change @@ -2225,7 +2225,7 @@ sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
2225
2225
sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
2226
2226
libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
2227
2227
linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
2228
- sys/endian.h sys/sysmacros.h linux/auxvec.h linux/memfd.h linux/wait.h sys/memfd.h \
2228
+ sys/endian.h sys/sysmacros.h linux/auxvec.h sys/auxv.h linux/memfd.h linux/wait.h sys/memfd.h \
2229
2229
sys/mman.h sys/eventfd.h )
2230
2230
AC_HEADER_DIRENT
2231
2231
AC_HEADER_MAJOR
Original file line number Diff line number Diff line change 1128
1128
/* Define to 1 if you have the <sys/audioio.h> header file. */
1129
1129
#undef HAVE_SYS_AUDIOIO_H
1130
1130
1131
+ /* Define to 1 if you have the <sys/auxv.h> header file. */
1132
+ #undef HAVE_SYS_AUXV_H
1133
+
1131
1134
/* Define to 1 if you have the <sys/bsdtty.h> header file. */
1132
1135
#undef HAVE_SYS_BSDTTY_H
1133
1136
You can’t perform that action at this time.
0 commit comments