Skip to content

Commit 6af7fc6

Browse files
committed
configure: remove now-unneeded HAVE_PWRITEV.
gossipd now uses pwrite(), which is more broadly supported. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 75164d2 commit 6af7fc6

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

configure

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -488,29 +488,6 @@ code=
488488
#error "Not modern GCC"
489489
#endif
490490
/*END*/
491-
var=HAVE_PWRITEV
492-
desc=pwritev() defined
493-
style=DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE
494-
code=
495-
#include <sys/uio.h>
496-
#include <sys/types.h>
497-
#include <sys/stat.h>
498-
#include <fcntl.h>
499-
500-
int main(void)
501-
{
502-
struct iovec iov[2];
503-
int fd = open("/dev/null", O_WRONLY);
504-
505-
iov[0].iov_base = "hello";
506-
iov[0].iov_len = 5;
507-
iov[1].iov_base = " world";
508-
iov[1].iov_len = 6;
509-
if (pwritev(fd, iov, 2, 0) == 11)
510-
return 0;
511-
return 1;
512-
}
513-
/*END*/
514491
EOF
515492

516493
if check_command 'python3-mako' python3 -c 'import mako'; then

0 commit comments

Comments
 (0)