From fdd7b566ecdc174907f38d9389b28ba842d2b4bf Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 18 Jun 2010 22:37:42 -0700 Subject: A few minor portability improvements Signed-off-by: Dan Fandrich Signed-off-by: Denys Vlasenko --- archival/libunarchive/unxz/xz_config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archival/libunarchive/unxz') diff --git a/archival/libunarchive/unxz/xz_config.h b/archival/libunarchive/unxz/xz_config.h index ff90eff..a4141e1 100644 --- a/archival/libunarchive/unxz/xz_config.h +++ b/archival/libunarchive/unxz/xz_config.h @@ -32,7 +32,9 @@ #define memeq(a, b, size) (memcmp(a, b, size) == 0) #define memzero(buf, size) memset(buf, 0, size) +#ifndef min #define min(x, y) ((x) < (y) ? (x) : (y)) +#endif #define min_t(type, x, y) min(x, y) /* -- cgit v1.1