summaryrefslogtreecommitdiff
path: root/librabbitmq
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2014-05-07 21:08:49 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2014-05-07 21:08:49 -0700
commitcb1b44e2348ef26a24bbcb6a2c00ba94e372c189 (patch)
treef08889fa6e36850e4890940146aa1ea38faf4dec /librabbitmq
parent3e83192454fbcaa4e6ef18c8fc3c76f15494877a (diff)
downloadrabbitmq-c-github-ask-cb1b44e2348ef26a24bbcb6a2c00ba94e372c189.tar.gz
Correct #include <sys/uio.h> location.
sys/uio.h should be included in amqp_private.h and not amqp.h, it also should not be protected by a test for the GCC compiler. This should fix the issue with compiling rabbitmq-c on HP-UX using aCC. This fixes #183.
Diffstat (limited to 'librabbitmq')
-rw-r--r--librabbitmq/amqp.h1
-rw-r--r--librabbitmq/amqp_private.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h
index 82b7c02..441e5b9 100644
--- a/librabbitmq/amqp.h
+++ b/librabbitmq/amqp.h
@@ -113,7 +113,6 @@
# define AMQP_CALL __cdecl
#elif defined(__GNUC__) && __GNUC__ >= 4
-# include <sys/uio.h>
# define AMQP_PUBLIC_FUNCTION \
__attribute__ ((visibility ("default")))
# define AMQP_PUBLIC_VARIABLE \
diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h
index c2e63c3..e11ce16 100644
--- a/librabbitmq/amqp_private.h
+++ b/librabbitmq/amqp_private.h
@@ -57,6 +57,7 @@
# include <Winsock2.h>
#else
# include <arpa/inet.h>
+# include <sys/uio.h>
#endif
/* GCC attributes */