]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
avoid gnulib's insistence to replace strerror
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 4 Mar 2014 11:04:29 +0000 (12:04 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 4 Mar 2014 11:12:31 +0000 (12:12 +0100)
lib/nettle/egd.c
lib/nettle/rnd-common.c

index 0c8bcbb3f518c262b8cad9e530c6cf1c44cbc88d..67d69a7879ef6e4aa39744dd8b0f2be48df06ff9 100644 (file)
@@ -47,6 +47,9 @@
 #define offsetof(type, member) ((size_t) &((type *)0)->member)
 #endif
 
+/* gnulib wants to claim strerror even if it cannot provide it. WTF */
+#undef strerror
+
 static int egd_socket = -1;
 
 static int do_write(int fd, void *buf, size_t nbytes)
index d60db17734ff12ba74785511aa1c65b6ed11d481..736c96940e11f505093d2537301f84d58aaad67b 100644 (file)
@@ -37,6 +37,9 @@
 #include <rnd-common.h>
 #include <hash-pjw-bare.h>
 
+/* gnulib wants to claim strerror even if it cannot provide it. WTF */
+#undef strerror
+
 void _rnd_get_event(struct event_st *e)
 {
        static unsigned count = 0;