openbsd-ports/net/csync/patches/patch-src_std_c_macro_h
ajacoutot c93da52ff2 Import csync-0.50.6.
csync is a lightweight utility to synchronize files between two
directories on a system or between multiple systems.
<...>

inputs/ok jasper@

NOTE that currently the owncloud module is commented in the PLIST
because there is something wrong with our neon library for webdav which
segfaults. I am working on this -- for now at least local and sftp sync
work fine.
2012-06-18 08:51:46 +00:00

19 lines
552 B
Plaintext

$OpenBSD: patch-src_std_c_macro_h,v 1.1.1.1 2012/06/18 08:51:46 ajacoutot Exp $
--- src/std/c_macro.h.orig Mon May 21 09:50:38 2012
+++ src/std/c_macro.h Sat Jun 16 11:07:57 2012
@@ -46,10 +46,14 @@
#define SAFE_FREE(x) do { if ((x) != NULL) {free((void*)x); x=NULL;} } while(0)
/** Get the smaller value */
+#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
+#endif
/** Get the bigger value */
+#ifndef MAX
#define MAX(a,b) ((a) < (b) ? (b) : (a))
+#endif
/** Get the size of an array */
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))