From e13cb3bcc4e74d4c49c31d290d686f99a4e81e3f Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Tue, 10 Aug 2021 23:59:34 +0800 Subject: [PATCH] fix(mini): fix compile error in mini liteos_a Signed-off-by: Caoruihong Change-Id: I9ab63796e5d47ac44d24807f1ebd0bbfe46681bf --- compat/posix/src/misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat/posix/src/misc.c b/compat/posix/src/misc.c index b8491a1b..821d4217 100644 --- a/compat/posix/src/misc.c +++ b/compat/posix/src/misc.c @@ -170,6 +170,9 @@ int getrlimit(int resource, struct rlimit *rlim) } #define FSIZE_RLIMIT 0XFFFFFFFF +#ifndef NR_OPEN_DEFAULT +#define NR_OPEN_DEFAULT 1024 +#endif int setrlimit(int resource, const struct rlimit *rlim) { LosProcessCB *pcb = OsCurrProcessGet();