Tidy build for OpenBSD
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 14 Oct 2017 18:56:50 +0000 (19:56 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 14 Oct 2017 18:56:50 +0000 (19:56 +0100)
src/src/dkim_transport.c

index 52f8784..704307e 100644 (file)
@@ -43,7 +43,11 @@ dkt_send_file(int out_fd, int in_fd, off_t off
 #endif
   )
 {
+#ifdef OS_SENDFILE
 DEBUG(D_transport) debug_printf("send file fd=%d size=%u\n", out_fd, (unsigned)(size - off));
+#else
+DEBUG(D_transport) debug_printf("send file fd=%d\n", out_fd);
+#endif
 
 /*XXX should implement timeout, like transport_write_block_fd() ? */