Skip to content

Commit

Permalink
fail test compile if libzmq<4.3.0 (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Mar 7, 2024
1 parent 80984fc commit 0199ee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ -z "$CLUSTERMQ_USE_SYSTEM_LIBZMQ" ]; then
CLUSTERMQ_USE_SYSTEM_LIBZMQ=1
fi
else
echo "* no system libzmq found -> using bundled libzmq"
echo "* no system libzmq>=4.3.0 found -> using bundled libzmq"
CLUSTERMQ_USE_SYSTEM_LIBZMQ=0
fi
rm -f test_libzmq
Expand Down
8 changes: 5 additions & 3 deletions src/util/test_libzmq.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include <zmq.h>
#if ZMQ_VERSION < ZMQ_MAKE_VERSION(4, 3, 0)
#error clustermq needs libzmq>=4.3.0
#endif
int main() {
#if defined(ZMQ_BUILD_DRAFT_API) && ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 3, 0)
return 0;
#endif
#ifndef ZMQ_BUILD_DRAFT_API
return 1;
#endif
}

0 comments on commit 0199ee5

Please sign in to comment.