Browse Source

Fix linux compilation of ed25519_ref10

Our integer-definition headers apparently suck in a definition for
select(2), which interferes with the select() in ge_scalarmult_base.c
Nick Mathewson 9 years ago
parent
commit
1d3b33e1ed
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/ext/ed25519/ref10/ge_scalarmult_base.c

+ 4 - 0
src/ext/ed25519/ref10/ge_scalarmult_base.c

@@ -1,6 +1,10 @@
 #include "ge.h"
 #include "ge.h"
 #include "crypto_uint32.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)
 static unsigned char equal(signed char b,signed char c)
 {
 {
   unsigned char ub = b;
   unsigned char ub = b;