mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-21 21:20:08 +01:00
cmake: check for the necessary symbols for test-segfault.c
If we don't check for them, and you have core dumps enabled, then
running this test under cmake is really annoying, because it leaves
lots of core dumps none of which are actually a problem.
The equivalent Autotools change (which added the actual code that
this relies on) is commit ae50d46, from fd.o#83772.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83115
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
This commit is contained in:
parent
c35d7d1eb7
commit
be55374fb5
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ check_include_file(signal.h HAVE_SIGNAL_H)
|
||||||
check_include_file(locale.h HAVE_LOCALE_H)
|
check_include_file(locale.h HAVE_LOCALE_H)
|
||||||
check_include_file(inttypes.h HAVE_INTTYPES_H) # dbus-pipe.h
|
check_include_file(inttypes.h HAVE_INTTYPES_H) # dbus-pipe.h
|
||||||
check_include_file(stdint.h HAVE_STDINT_H) # dbus-pipe.h
|
check_include_file(stdint.h HAVE_STDINT_H) # dbus-pipe.h
|
||||||
|
check_include_file(sys/prctl.h HAVE_SYS_PRCTL_H)
|
||||||
|
|
||||||
check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE) # dbus-sysdeps.c, dbus-sysdeps-win.c
|
check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE) # dbus-sysdeps.c, dbus-sysdeps-win.c
|
||||||
check_symbol_exists(getgrouplist "grp.h" HAVE_GETGROUPLIST) # dbus-sysdeps.c
|
check_symbol_exists(getgrouplist "grp.h" HAVE_GETGROUPLIST) # dbus-sysdeps.c
|
||||||
|
|
@ -42,6 +43,8 @@ check_symbol_exists(accept4 "sys/socket.h" HAVE_ACCEPT4)
|
||||||
check_symbol_exists(dirfd "dirent.h" HAVE_DIRFD)
|
check_symbol_exists(dirfd "dirent.h" HAVE_DIRFD)
|
||||||
check_symbol_exists(inotify_init1 "sys/inotify.h" HAVE_INOTIFY_INIT1)
|
check_symbol_exists(inotify_init1 "sys/inotify.h" HAVE_INOTIFY_INIT1)
|
||||||
check_symbol_exists(SCM_RIGHTS "sys/types.h;sys/socket.h;sys/un.h" HAVE_UNIX_FD_PASSING)
|
check_symbol_exists(SCM_RIGHTS "sys/types.h;sys/socket.h;sys/un.h" HAVE_UNIX_FD_PASSING)
|
||||||
|
check_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
|
||||||
|
check_symbol_exists(raise "signal.h" HAVE_RAISE)
|
||||||
|
|
||||||
check_struct_member(cmsgcred cmcred_pid "sys/types.h sys/socket.h" HAVE_CMSGCRED) # dbus-sysdeps.c
|
check_struct_member(cmsgcred cmcred_pid "sys/types.h sys/socket.h" HAVE_CMSGCRED) # dbus-sysdeps.c
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue