aboutsummaryrefslogtreecommitdiff
path: root/tests/compat_testutil.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-04-16 11:40:28 -0700
committerGarrett D'Amore <garrett@damore.org>2018-04-16 20:56:32 -0700
commit45f3f141850a0ac07c31906748752571652683df (patch)
tree0e14b8e5a72972e370f60ea5fd230a790195cd28 /tests/compat_testutil.h
parente3b8f31b044e4fe7d47439467fc1622266b5335c (diff)
downloadnng-45f3f141850a0ac07c31906748752571652683df.tar.gz
nng-45f3f141850a0ac07c31906748752571652683df.tar.bz2
nng-45f3f141850a0ac07c31906748752571652683df.zip
fixes #344 nn_poll() legacy API missing
This includes the test from legacy libnanomsg and a man page. We have refactored the message queue notification system so that it uses nni_pollable, leading we hope to a more consistent system, and reducing the code size and complexity. We also fixed the size of the NN_RCVFD and NN_SNDFD so that they are a SOCKET on Windows systems, rather than an integer. This addresses 64-bit compilation problems.
Diffstat (limited to 'tests/compat_testutil.h')
-rw-r--r--tests/compat_testutil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/compat_testutil.h b/tests/compat_testutil.h
index 745f5621..ce5968a2 100644
--- a/tests/compat_testutil.h
+++ b/tests/compat_testutil.h
@@ -40,6 +40,7 @@
#define nn_err_abort abort
#define nn_assert assert
#define errno_assert assert
+#define wsa_assert assert
#define alloc_assert(x) assert(x != NULL)
#if defined __GNUC__ || defined __llvm__ || defined __clang__