aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-21 04:14:06 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-21 04:14:06 +0000
commitb69f5f3e1bdfc07a6b3c78b54f4f16de7ba9e934 (patch)
treee17f2931ef15fc743af2bac981d2488f6f18b1cd /src/common/util.c
parentf608b85ddf25ab5c48473d9d922fdf420e8a2507 (diff)
downloadtor-b69f5f3e1bdfc07a6b3c78b54f4f16de7ba9e934.tar
tor-b69f5f3e1bdfc07a6b3c78b54f4f16de7ba9e934.tar.gz
Add an autoconf test for whether unaligned int access is permitted.
It works on macos, and works correctly when I twiddle the test code to generate a spurious segfault. Will it work anywhere else? svn:r1329
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index edd785cb8..80299c4e3 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -86,7 +86,7 @@ void tor_strlower(char *s)
}
}
-#ifndef UNALIGNED_ACCESS_OK
+#ifndef UNALIGNED_INT_ACCESS_OK
uint16_t get_uint16(char *cp)
{
uint16_t v;