… | |
… | |
68 | AC_CHECK_HEADERS([sys/mkdev.h]) |
68 | AC_CHECK_HEADERS([sys/mkdev.h]) |
69 | |
69 | |
70 | dnl readv / preadv, vmsplice |
70 | dnl readv / preadv, vmsplice |
71 | AC_CHECK_HEADERS([sys/uio.h]) |
71 | AC_CHECK_HEADERS([sys/uio.h]) |
72 | |
72 | |
|
|
73 | dnl fexecve has always been in the single unix specification |
|
|
74 | dnl but some atrocities (like opsnbsd and osx) claim implementing it |
|
|
75 | dnl but then not definining it. ugh. garbage. and fexecve would be |
|
|
76 | dnl useful for security, but, no, not on openbsd. we'd rather lie |
|
|
77 | dnl about it. |
|
|
78 | AC_CACHE_CHECK(for fexecve, ac_cv_fexecve, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
79 | #include <fcntl.h> |
|
|
80 | #include <unistd.h> |
|
|
81 | int main (void) |
|
|
82 | { |
|
|
83 | int res = fexecve (-1, "argv", 0); |
|
|
84 | return 0; |
|
|
85 | } |
|
|
86 | ]])],ac_cv_fexecve=yes,ac_cv_fexecve=no)]) |
|
|
87 | test $ac_cv_fexecve = yes && AC_DEFINE(HAVE_FEXECVE, 1, fexecve(2) is available) |
|
|
88 | |
73 | AC_CACHE_CHECK([for siginfo_t], ac_cv_siginfo_t, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
89 | AC_CACHE_CHECK([for siginfo_t], ac_cv_siginfo_t, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
74 | #include <signal.h> |
90 | #include <signal.h> |
75 | int main (void) |
91 | int main (void) |
76 | { |
92 | { |
77 | siginfo_t si; |
93 | siginfo_t si; |