diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2014-05-07 21:08:49 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2014-05-07 21:08:49 -0700 |
commit | cb1b44e2348ef26a24bbcb6a2c00ba94e372c189 (patch) | |
tree | f08889fa6e36850e4890940146aa1ea38faf4dec | |
parent | 3e83192454fbcaa4e6ef18c8fc3c76f15494877a (diff) | |
download | rabbitmq-c-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.
-rw-r--r-- | librabbitmq/amqp.h | 1 | ||||
-rw-r--r-- | librabbitmq/amqp_private.h | 1 |
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 */ |