From dcb8ab569a4054e66fc18b54e265d1810979d2c7 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 31 May 2023 22:15:22 +0200 Subject: [PATCH] libc: Add basic sys/param.h for programs that want it --- libc/include/sys/param.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libc/include/sys/param.h diff --git a/libc/include/sys/param.h b/libc/include/sys/param.h new file mode 100644 index 00000000..e7744d7f --- /dev/null +++ b/libc/include/sys/param.h @@ -0,0 +1,16 @@ +/* sys/param.h: Old-style BSD macros. */ + +#ifndef _SYS_PARAM_H +#define _SYS_PARAM_H + +#include + +#ifndef MIN +#define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef MAX +#define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +#endif