summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-09 15:10:12 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-09 15:10:16 +0200
commit8cedd9124c9727d4fb25fd2a608d0abaa1cc68d0 (patch)
tree8030b473d0b7b8c1e7d5085a90bcf9adff9d7ab0
parent49dd781240ddc9b8d7c14f4080a315df7c9a4379 (diff)
downloadgnutls-8cedd9124c9727d4fb25fd2a608d0abaa1cc68d0.tar.gz
Prevent gnulib from replacing strdup as we don't include this gnulib module.
-rw-r--r--lib/gnutls_int.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 7762404ca1..785f9e6e20 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -36,6 +36,12 @@
#include <stdint.h>
#include <stdbool.h>
+/* For some reason gnulib likes to provide alternatives for
+ * functions it doesn't include. Even worse these functions seem
+ * to be available on the target systems.
+ */
+#undef strdup
+
#ifdef NO_SSIZE_T
#define HAVE_SSIZE_T
typedef int ssize_t;