daemon/Win32: Supply MAX macro for challenged platforms.
authorRichard Jones <rjones@redhat.com>
Wed, 25 Nov 2009 15:00:19 +0000 (15:00 +0000)
committerRichard Jones <rjones@redhat.com>
Wed, 25 Nov 2009 16:28:26 +0000 (16:28 +0000)
daemon/guestfsd.c

index d3b754d..9691053 100644 (file)
@@ -60,6 +60,10 @@ static char *read_cmdline (void);
 #define AI_ADDRCONFIG 0
 #endif
 
+#ifndef MAX
+#define MAX(a,b) ((a)>(b)?(a):(b))
+#endif
+
 int verbose = 0;
 
 static int print_shell_quote (FILE *stream, const struct printf_info *info, const void *const *args);