p7zip: fix man page paths
[oi-userland.git] / components / sysutils / augeas / patches / fix-min-max.patch
blob6ca24a79bc120d2874800a6fa469fe3ae93f3a62
1 --- augeas-1.14.1/src/augprint.c.orig
2 +++ augeas-1.14.1/src/augprint.c
3 @@ -70,10 +70,13 @@
4 #include <augeas.h>
5 #include <errno.h>
6 #include <libgen.h> /* for basename() on FreeBSD and MacOS */
7 -#include <sys/param.h> /* for MIN() MAX() */
8 #include <unistd.h>
9 #include "augprint.h"
11 +/* Macros for min/max taken from FreeBSD */
12 +#define MIN(a,b) (((a)<(b))?(a):(b))
13 +#define MAX(a,b) (((a)>(b))?(a):(b))
15 #define CHECK_OOM(condition, action, arg) \
16 do { \
17 if (condition) { \