summaryrefslogtreecommitdiff
path: root/sysutils/ftwin/patches/patch-aa
blob: 286f368ca524e13e062a60ec426fca534ff13e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-aa,v 1.2 2015/01/23 10:11:47 wiz Exp $

* for the case MIN is aready defined somewhere else.
https://github.com/fpesce/ftwin/issues/4

--- src/ft_file.h.orig	2009-05-20 17:57:08.000000000 +0000
+++ src/ft_file.h
@@ -20,7 +20,9 @@
 
 #include <apr_pools.h>
 
+#ifndef MIN
 #define MIN(a,b) ((a)<(b)) ? (a) : (b)
+#endif
 
 /* hash result is not the same for a same file whether it is considered as big or small, so use carefully */
 apr_status_t checksum_file(const char *filename, apr_off_t size, apr_off_t excess_size, apr_uint32_t *state,