From: Richard Jones Date: Sun, 21 Mar 2010 17:14:37 +0000 (+0000) Subject: Mac OS X: define MAX macro if not already defined. X-Git-Tag: 1.0.87~17 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=a6802f80b3b91bfc7d6846db2989c381385e6a15;p=libguestfs.git Mac OS X: define MAX macro if not already defined. --- diff --git a/src/guestfs.c b/src/guestfs.c index 01e37cf..a00e8db 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -96,6 +96,10 @@ static int qemu_supports (guestfs_h *g, const char *option); #define UNIX_PATH_MAX 108 +#ifndef MAX +#define MAX(a,b) ((a)>(b)?(a):(b)) +#endif + /* Also in guestfsd.c */ #define GUESTFWD_ADDR "10.0.2.4" #define GUESTFWD_PORT "6666"