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 52f87845ed372c650cb9cbdb0d41e007d8d4806d..704307e6f43baa1e949366e3b2e93d81f493579d 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() ? */