openbsd-ports/security/samdump2/patches/patch-hive_c
benoit 3e975b5cb3 - update samdump2 to 3.0.0
- remove USE_GROFF
- update patches
2012-04-21 15:16:27 +00:00

18 lines
449 B
Plaintext

$OpenBSD: patch-hive_c,v 1.2 2012/04/21 15:16:29 benoit Exp $
--- hive.c.orig Fri Apr 20 14:27:00 2012
+++ hive.c Sat Apr 21 17:04:10 2012
@@ -30,7 +30,13 @@
#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