summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_api.c
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/amqp_api.c
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/amqp_api.c')
-rw-r--r--librabbitmq/amqp_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/librabbitmq/amqp_api.c b/librabbitmq/amqp_api.c
index e35fa2d..d3baf5a 100644
--- a/librabbitmq/amqp_api.c
+++ b/librabbitmq/amqp_api.c
@@ -48,6 +48,8 @@
* ***** END LICENSE BLOCK *****
*/
+#include "config.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -58,10 +60,6 @@
#include "amqp_framing.h"
#include "amqp_private.h"
-#ifndef _GNU_SOURCE
-#include "utils/strdup.h"
-#endif
-
#include <assert.h>
static const char *client_error_strings[ERROR_MAX] = {