mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-22 20:03:56 +00:00
Merge pull request #137 from gcv/master
Fix alignment problem with zmq_msg_t
This commit is contained in:
commit
a6d24d7fd8
@ -205,7 +205,10 @@ ZMQ_EXPORT int zmq_ctx_destroy (void *context);
|
||||
/* 0MQ message definition. */
|
||||
/******************************************************************************/
|
||||
|
||||
typedef struct zmq_msg_t {unsigned char _ [64];} zmq_msg_t;
|
||||
/* union here ensures correct alignment on architectures that require it, e.g.
|
||||
* SPARC and ARM
|
||||
*/
|
||||
typedef union zmq_msg_t { unsigned char _ [64]; void *p; } zmq_msg_t;
|
||||
|
||||
typedef void (zmq_free_fn) (void *data, void *hint);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user