openbsd-ports/net/ntp/patches/patch-configure_ac
2022-03-11 19:45:43 +00:00

23 lines
526 B
Plaintext

Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -962,7 +962,7 @@ case "$ac_cv_func_recvmsg" in
compiled=no
for ntp_cv_struct_iovec_help in '0' '1'; do
AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
+ [AC_LANG_SOURCE(
[[
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
@@ -973,8 +973,7 @@ case "$ac_cv_func_recvmsg" in
#if $ntp_cv_struct_iovec_help
# include <sys/uio.h>
#endif
- ]],
- [[
+
void foo(void) {
ssize_t x;
int s = 0;