[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [obfsproxy/master] Fix sha256.c so it actually compiles



commit 3c5d4c63a0eaa67d41c552bd26160ce442c7b36e
Author: Zack Weinberg <zackw@xxxxxxxxx>
Date:   Fri Jul 8 21:06:12 2011 -0700

    Fix sha256.c so it actually compiles
---
 configure.ac |    2 +-
 src/sha256.c |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7465708..025589f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_PREREQ([2.67])dnl Possibly earlier will do, but this is what I have
+AC_PREREQ([2.61])dnl Possibly earlier will do, but this is what I have
 AC_INIT([obsproxy], [0.0])
 AC_CONFIG_SRCDIR([src/main.c])
 
diff --git a/src/sha256.c b/src/sha256.c
index 4833b99..ff2cf21 100644
--- a/src/sha256.c
+++ b/src/sha256.c
@@ -7,6 +7,7 @@
 #include "sha256.h"
 #include <assert.h>
 #include <string.h>
+#include <arpa/inet.h> /* for htonl/ntohl */
 
 #define STMT_BEGIN do {
 #define STMT_END } while (0)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits