summaryrefslogtreecommitdiff
path: root/src/ext/csiphash.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2016-09-01 17:50:38 +0000
committerDavid Goulet <dgoulet@torproject.org>2017-02-03 09:37:39 -0500
commit27df23abb675ffeb198bf0c1cc85c4baed77a988 (patch)
tree9fcb0bbb384188f3be58409bcb7fe5f23cbc3a95 /src/ext/csiphash.c
parent0f79fb51e5653cbc82a0066423c833cafb656542 (diff)
downloadtor-27df23abb675ffeb198bf0c1cc85c4baed77a988.tar.gz
tor-27df23abb675ffeb198bf0c1cc85c4baed77a988.zip
Use the standard OpenBSD preprocessor definition
Diffstat (limited to 'src/ext/csiphash.c')
-rw-r--r--src/ext/csiphash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/csiphash.c b/src/ext/csiphash.c
index b60f73a7ff..8348c66048 100644
--- a/src/ext/csiphash.c
+++ b/src/ext/csiphash.c
@@ -53,7 +53,7 @@
#else
/* See: http://sourceforge.net/p/predef/wiki/Endianness/ */
-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(OpenBSD)
# include <sys/endian.h>
# else
# include <endian.h>
@@ -62,7 +62,7 @@
__BYTE_ORDER == __LITTLE_ENDIAN
# define _le64toh(x) ((uint64_t)(x))
# else
-# if defined(__OpenBSD__)
+# if defined(OpenBSD)
# define _le64toh(x) letoh64(x)
# else
# define _le64toh(x) le64toh(x)