diff --git a/include/sys/param.h b/include/sys/param.h index 5d29d3ce34..4e94f51bbc 100644 --- a/include/sys/param.h +++ b/include/sys/param.h @@ -33,6 +33,16 @@ #define MAXHOSTNAMELEN HOST_NAME_MAX +/* Macros for min/max. */ + +#ifndef MIN +# define MIN(a,b) (((a) < (b)) ? (a) : (b)) +#endif /* MIN */ + +#ifndef MAX +# define MAX(a,b) (((a) > (b)) ? (a) : (b)) +#endif /* MAX */ + /**************************************************************************** * Public Type Definitions ****************************************************************************/