openbsd-ports/archivers/unace/patches/patch-unace_c
2001-03-24 22:31:18 +00:00

13 lines
430 B
Plaintext

$OpenBSD: patch-unace_c,v 1.1 2001/03/24 22:31:20 brad Exp $
--- unace.c.orig Wed Jul 1 04:29:10 1998
+++ unace.c Sat Mar 24 17:30:41 2001
@@ -120,7 +120,7 @@ INT read_header(INT print_err)
if (read(archan, &head, 4)<4)
return 0; // read CRC and header size
-#ifdef HI_LO_BYTE_ORDER
+#if BYTE_ORDER == BIG_ENDIAN
WORDswap(&head.HEAD_CRC);
WORDswap(&head.HEAD_SIZE);
#endif