summaryrefslogtreecommitdiff
path: root/librabbitmq/unix/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'librabbitmq/unix/socket.c')
-rw-r--r--librabbitmq/unix/socket.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/librabbitmq/unix/socket.c b/librabbitmq/unix/socket.c
index d0e2400..cb8a2b9 100644
--- a/librabbitmq/unix/socket.c
+++ b/librabbitmq/unix/socket.c
@@ -34,17 +34,27 @@
#include "config.h"
#endif
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <unistd.h>
+#include "amqp_private.h"
+#include "socket.h"
#include <fcntl.h>
#include <stdint.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <unistd.h>
-#include "amqp.h"
-#include "amqp_private.h"
-#include "socket.h"
+int
+amqp_socket_init(void)
+{
+ return 0;
+}
+
+int
+amqp_socket_error(void)
+{
+ return errno | ERROR_CATEGORY_OS;
+}
int amqp_socket_socket(int domain, int type, int proto)
{