openbsd-ports/security/ophcrack/patches/patch-src_samdump2_hive_c
naddy e5b9105f73 Fix build on big endian architectures:
* For samdump2, use the bswap.h wrapper header from the main source.
* Also add bswap64, which is required by nteightxl.c.

ok benoit@
2012-05-20 20:13:39 +00:00

13 lines
387 B
Plaintext

$OpenBSD: patch-src_samdump2_hive_c,v 1.1 2012/05/20 20:13:39 naddy Exp $
--- src/samdump2/hive.c.orig Sat May 19 20:24:29 2012
+++ src/samdump2/hive.c Sat May 19 20:24:34 2012
@@ -30,7 +30,7 @@
#ifdef BYTE_ORDER
#if BYTE_ORDER == LITTLE_ENDIAN
#elif BYTE_ORDER == BIG_ENDIAN
-#include <byteswap.h>
+#include <bswap.h>
#else
#warning "Doesn't define a standard ENDIAN type"
#endif