diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-21 04:14:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-21 04:14:06 +0000 |
commit | b69f5f3e1bdfc07a6b3c78b54f4f16de7ba9e934 (patch) | |
tree | e17f2931ef15fc743af2bac981d2488f6f18b1cd /src | |
parent | f608b85ddf25ab5c48473d9d922fdf420e8a2507 (diff) | |
download | tor-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')
-rw-r--r-- | src/common/util.c | 2 | ||||
-rw-r--r-- | src/common/util.h | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/src/common/util.h b/src/common/util.h index f05a012b4..f7ac07fca 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -43,7 +43,7 @@ char *tor_strndup(const char *s, size_t n); #define tor_free(p) do {if(p) {free(p); (p)=NULL;}} while(0) void tor_strlower(char *s); -#ifdef UNALIGNED_ACCESS_OK +#ifdef UNALIGNED_INT_ACCESS_OK /* XXX Not actually used yet, but would probably be faster on non-sun * hardare. */ |