Browse Source

Use torint.h in curve25519-donna*.c

This will get it building on systems that lack stdint.h
Nick Mathewson 11 years ago
parent
commit
4beee0f69b

+ 3 - 0
changes/integers_donna

@@ -0,0 +1,3 @@
+  o Minor bugfixes (portability)
+    - Tweak the curve25519-donna*.c implementations to tolerate systems
+      that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.

+ 3 - 1
src/ext/curve25519_donna/curve25519-donna-c64.c

@@ -22,8 +22,10 @@
  * from the sample implementation.
  */
 
+#include "orconfig.h"
+
 #include <string.h>
-#include <stdint.h>
+#include "torint.h"
 
 typedef uint8_t u8;
 typedef uint64_t limb;

+ 3 - 1
src/ext/curve25519_donna/curve25519-donna.c

@@ -46,8 +46,10 @@
  * from the sample implementation.
  */
 
+#include "orconfig.h"
+
 #include <string.h>
-#include <stdint.h>
+#include "torint.h"
 
 typedef uint8_t u8;
 typedef int32_t s32;