--- origsrc/libtirpc-1.3.4/src/clnt_dg.c	2023-10-07 09:54:42.000000000 +0200
+++ src/clnt_dg.c	2024-01-27 23:16:30.348368400 +0100
@@ -55,6 +55,11 @@
 #include "rpc_com.h"
 #include "clnt_fd_locks.h"
 
+/* on Cygwin we have IP_RECVERR but not linux/errqueue.h */
+#ifdef __CYGWIN__
+	#undef IP_RECVERR
+#endif
+
 #ifdef IP_RECVERR
 #include <asm/types.h>
 #include <linux/errqueue.h>
