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();