]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix linux compilation of ed25519_ref10
authorNick Mathewson <nickm@torproject.org>
Thu, 28 Aug 2014 00:12:57 +0000 (20:12 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 25 Sep 2014 19:08:31 +0000 (15:08 -0400)
Our integer-definition headers apparently suck in a definition for
select(2), which interferes with the select() in ge_scalarmult_base.c

src/ext/ed25519/ref10/ge_scalarmult_base.c

index a55c3c461136b7ae4723e9600d3a6b712624d1e9..ad7aae40d9a035cc004913a0b0cc1c49b5ed0cdd 100644 (file)
@@ -1,6 +1,10 @@
 #include "ge.h"
 #include "crypto_uint32.h"
 
+/* Rename this so as not to interfere with select() which torint.h apparently
+ * grabs. :p */
+#define select ed25519_ref10_select
+
 static unsigned char equal(signed char b,signed char c)
 {
   unsigned char ub = b;