openbsd-ports/security/samdump2/patches/patch-hive_c
benoit 2f0c8163e7 import samdump2
samdump2 is a tool for dumping Windows 2k/NT/XP password hashes.

with some tweaks by and ok ajacoutot@
2009-06-02 08:36:01 +00:00

22 lines
502 B
Plaintext

$OpenBSD: patch-hive_c,v 1.1.1.1 2009/06/02 08:36:02 benoit Exp $
--- hive.c.orig Thu May 28 21:14:36 2009
+++ hive.c Thu May 28 21:43:50 2009
@@ -27,11 +27,16 @@
#include <sys/param.h>
#include "hive.h"
-
#ifdef BYTE_ORDER
#if BYTE_ORDER == LITTLE_ENDIAN
#elif BYTE_ORDER == BIG_ENDIAN
+#ifndef __OpenBSD__
#include <byteswap.h>
+#else
+#include <sys/endian.h>
+#define __bswap_32 __swap32
+#define __bswap_16 __swap16
+#endif
#else
#warning "Doesn't define a standard ENDIAN type"
#endif