summaryrefslogtreecommitdiff
path: root/include/sys/param.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/param.h')
-rw-r--r--include/sys/param.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/param.h b/include/sys/param.h
index 1ed5337e..30499cc7 100644
--- a/include/sys/param.h
+++ b/include/sys/param.h
@@ -10,6 +10,11 @@
#undef MAXPATHLEN
#define MAXPATHLEN 4096
+#undef MIN
+#undef MAX
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#define MAX(a,b) (((a)>(b))?(a):(b))
+
#include <sys/resource.h>
#include <endian.h>
#include <limits.h>