summaryrefslogtreecommitdiff
path: root/compat/memcmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/memcmp.h')
-rw-r--r--compat/memcmp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/compat/memcmp.h b/compat/memcmp.h
new file mode 100644
index 000000000000..c1d195ccf4ac
--- /dev/null
+++ b/compat/memcmp.h
@@ -0,0 +1,16 @@
+/*
+ * memcmp.h: undef memcmp for compat.
+ *
+ * Copyright (c) 2012, NLnet Labs. All rights reserved.
+ *
+ * See LICENSE for the license.
+*/
+#ifndef COMPAT_MEMCMP_H
+#define COMPAT_MEMCMP_H
+
+#ifdef memcmp
+/* undef here otherwise autoheader messes it up in config.h */
+# undef memcmp
+#endif
+
+#endif /* COMPAT_MEMCMP_H */