[nanomsg] usock_posix patch for openbsd

  • From: Brian <brian@xxxxxxxxxxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Wed, 18 Mar 2015 17:02:00 -0400

First ever patch, just wanted to get this out there in case someone ran into the same thing I did:


--- nanomsg-0.5-beta/src/aio/usock_posix.h      Fri Nov 14 16:33:29 2014
+++ nanomsg-0.5-patch/src/aio/usock_posix.h     Wed Mar 18 11:23:26 2015
@@ -26,6 +26,10 @@
 #include <sys/types.h>
 #include <sys/socket.h>

+#if defined(__OpenBSD__)
+#include <sys/uio.h>
+#endif
+
 struct nn_usock {

     /*  State machine base class. */

Fixes the make error I was seeing.

Other related posts:

  • » [nanomsg] usock_posix patch for openbsd - Brian