summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'librabbitmq/amqp_private.h')
-rw-r--r--librabbitmq/amqp_private.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h
index d0a5dac..20cde99 100644
--- a/librabbitmq/amqp_private.h
+++ b/librabbitmq/amqp_private.h
@@ -39,9 +39,12 @@
#include "amqp.h"
#include "amqp_framing.h"
-#include <arpa/inet.h>
#include <string.h>
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
/* Error numbering: Because of differences in error numbering on
* different platforms, we want to keep error numbers opaque for
* client code. Internally, we encode the category of an error