summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-05-26 21:20:50 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2012-05-26 21:20:50 -0700
commitfe5a35ae194307aef7cd0da2cb5265cbdff005fc (patch)
tree6e2d3b87546fb66087b812c79465d880e0936280
parent9126fe82034930f17e4183161a3d70d6a6333641 (diff)
parentbbfc30e8960f2965126b9dfe8c3f3d95bd7ade03 (diff)
downloadrabbitmq-c-github-ask-fe5a35ae194307aef7cd0da2cb5265cbdff005fc.tar.gz
Merge pull request #22 from glassresistor/master
Fix for Smart OS
-rw-r--r--librabbitmq/amqp_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h
index 67d5fdd..bbee792 100644
--- a/librabbitmq/amqp_private.h
+++ b/librabbitmq/amqp_private.h
@@ -240,8 +240,10 @@ static inline uint64_t func##ll(uint64_t val) \
#endif
+#ifndef __sun
DECLARE_XTOXLL(hton)
DECLARE_XTOXLL(ntoh)
+#endif
DECLARE_CODEC_BASE_TYPE(8, (uint8_t), (uint8_t))
DECLARE_CODEC_BASE_TYPE(16, htons, ntohs)