2006-12-03 04:09:46 +01:00
|
|
|
$NetBSD: patch-al,v 1.2 2006/12/03 03:09:46 obache Exp $
|
2005-10-03 13:20:55 +02:00
|
|
|
|
2006-12-03 04:09:46 +01:00
|
|
|
--- src/lha_macro.h.orig 2000-10-04 23:57:38.000000000 +0900
|
2005-10-03 13:20:55 +02:00
|
|
|
+++ src/lha_macro.h
|
|
|
|
@@ -68,7 +68,6 @@ extern char *realloc();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* external variables */
|
|
|
|
-extern int errno;
|
|
|
|
|
|
|
|
#define FALSE 0
|
|
|
|
#define TRUE 1
|
2006-12-03 04:09:46 +01:00
|
|
|
@@ -324,6 +323,8 @@ typedef short node;
|
|
|
|
/* Individual macro define */
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
|
|
|
|
+#define MIN(a,b) ((a) <= (b) ? (a) : (b))
|
|
|
|
+
|
|
|
|
/* from crcio.c */
|
|
|
|
#define CRCPOLY 0xA001 /* CRC-16 */
|
|
|
|
#define UPDATE_CRC(c) crc = crctable[(crc ^ (c)) & 0xFF] ^ (crc >> CHAR_BIT)
|