$NetBSD: patch-src_util_libsync.h,v 1.1 2022/03/13 15:52:50 tnn Exp $

sys/ioccom.h for _IOWR

--- src/util/libsync.h.orig	2022-01-12 21:32:28.000000000 +0000
+++ src/util/libsync.h
@@ -34,6 +34,9 @@
 #include <stdint.h>
 #include <string.h>
 #include <sys/ioctl.h>
+#ifdef __sun__
+#include <sys/ioccom.h>
+#endif
 #include <sys/poll.h>
 #include <unistd.h>