git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73e472f
)
Mac OS X: define MAX macro if not already defined.
author
Richard Jones
<rich@koneko.home.annexia.org>
Sun, 21 Mar 2010 17:14:37 +0000
(17:14 +0000)
committer
Richard Jones
<rich@koneko.home.annexia.org>
Mon, 22 Mar 2010 10:41:44 +0000
(10:41 +0000)
src/guestfs.c
patch
|
blob
|
history
diff --git
a/src/guestfs.c
b/src/guestfs.c
index
01e37cf
..
a00e8db
100644
(file)
--- 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"