Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 4 files changed
  • 0 comments
  • 1 contributor
1  .rvmrc
... ...
@@ -0,0 +1 @@
  1
+rvm use 1.9.3
2  configure.in
@@ -23,7 +23,7 @@ dnl Checks for libraries.
23 23
 PKG_CHECK_MODULES(GLIB, glib-2.0)
24 24
 AC_SUBST(GLIB)
25 25
 
26  
-PKG_CHECK_MODULES(LIBZMQ, libzmq >= 3.2)
  26
+PKG_CHECK_MODULES(LIBZMQ, libzmq = 2.2.0)
27 27
 AC_SUBST(LIBZMQ)
28 28
 
29 29
 PKG_CHECK_MODULES(GST, gstreamer-0.10)
1  src/utility.c
@@ -18,6 +18,7 @@
18 18
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 19
 */
20 20
 
  21
+#include <stdio.h>
21 22
 #include <glib.h>
22 23
 #include <string.h>
23 24
 #include <sys/uio.h>
13  src/utility.h
@@ -21,6 +21,19 @@
21 21
 #ifndef _UTILITY_H
22 22
 #define _UTILITY_H
23 23
 
  24
+#ifndef ZMQ_DONTWAIT
  25
+#   define ZMQ_DONTWAIT     ZMQ_NOBLOCK
  26
+#endif
  27
+#if ZMQ_VERSION_MAJOR == 2
  28
+#   define zmq_ctx_new() zmq_init(1)
  29
+#   define zmq_ctx_destroy(ctx) zmq_term(ctx)
  30
+#   define zmq_msg_send(msg,sock,opt) zmq_send (sock, msg, opt)
  31
+#   define zmq_msg_recv(msg,sock,opt) zmq_recv (sock, msg, opt)
  32
+#   define ZMQ_POLL_MSEC    1000        //  zmq_poll is usec
  33
+#elif ZMQ_VERSION_MAJOR == 3
  34
+#   define ZMQ_POLL_MSEC    1           //  zmq_poll is msec
  35
+#endif
  36
+
24 37
 gboolean util_close_socket(void* sock);
25 38
 char* util_send_reqrep_msg(void* zmq_context, const char* message, const char* address);
26 39
 void util_zmq_glib_free(void* to_free, void* hint);

No commit comments for this range

Something went wrong with that request. Please try again.