diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2012-05-24 12:16:55 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2012-05-24 12:16:55 -0700 |
commit | 7a74c3574afb32ab31dc5f946afbf89f3022a36d (patch) | |
tree | 905ce64fbee48f720b553cda46cee272ea064b17 /librabbitmq/unix/socket.h | |
parent | 50a298e6c0df1ef8f2ec19da5949adef392e5131 (diff) | |
parent | e567f9eb8918d35db4ebc78e9a512d3e838afe00 (diff) | |
download | rabbitmq-c-github-ask-7a74c3574afb32ab31dc5f946afbf89f3022a36d.tar.gz |
Merge pull request #16 from msteinert/autotools
Cleanup autoconf/automake build
Diffstat (limited to 'librabbitmq/unix/socket.h')
-rw-r--r-- | librabbitmq/unix/socket.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/librabbitmq/unix/socket.h b/librabbitmq/unix/socket.h index af86ffb..ff6fa73 100644 --- a/librabbitmq/unix/socket.h +++ b/librabbitmq/unix/socket.h @@ -34,28 +34,25 @@ */ #include <errno.h> -#include <sys/types.h> -#include <unistd.h> -#include <sys/uio.h> -#include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> #include <netinet/tcp.h> +#include <sys/socket.h> +#include <sys/types.h> +#include <sys/uio.h> +#include <unistd.h> -static inline int amqp_socket_init(void) -{ - return 0; -} +int +amqp_socket_init(void); -extern int amqp_socket_socket(int domain, int type, int proto); +int +amqp_socket_socket(int domain, int type, int proto); + +int +amqp_socket_error(void); #define amqp_socket_setsockopt setsockopt #define amqp_socket_close close #define amqp_socket_writev writev -static inline int amqp_socket_error() -{ - return errno | ERROR_CATEGORY_OS; -} - #endif |