summaryrefslogtreecommitdiff
path: root/librabbitmq/unix
diff options
context:
space:
mode:
authorDaniel Schauenberg <d@unwiredcouch.com>2011-02-03 12:44:16 +0100
committerDaniel Schauenberg <d@unwiredcouch.com>2011-02-03 12:44:16 +0100
commit28c3b9b263da5d7167e5bf124c98b274b041617c (patch)
tree8d7ab316edb019768b8abd43c266fa18084f27c9 /librabbitmq/unix
parentbaa6cd4c79d7118f0c1f938d9016dbe83afc8089 (diff)
downloadrabbitmq-c-github-ask-28c3b9b263da5d7167e5bf124c98b274b041617c.tar.gz
config.h defines _GNU_SOURCE and is therefore all we need to include
Diffstat (limited to 'librabbitmq/unix')
-rw-r--r--librabbitmq/unix/socket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/librabbitmq/unix/socket.c b/librabbitmq/unix/socket.c
index 1edc52f..b8f0b4e 100644
--- a/librabbitmq/unix/socket.c
+++ b/librabbitmq/unix/socket.c
@@ -48,6 +48,8 @@
* ***** END LICENSE BLOCK *****
*/
+#include "config.h"
+
#include <sys/socket.h>
#include <unistd.h>
#include <fcntl.h>
@@ -59,10 +61,6 @@
#include "amqp_private.h"
#include "socket.h"
-#ifndef _GNU_SOURCE
-#include "utils/strdup.h"
-#endif
-
int amqp_socket_socket(int domain, int type, int proto)
{
int flags;