error: `RLIMIT_AS' undeclared

Vincent Stemen vince.dragonfly at
Thu Apr 2 19:39:56 PDT 2009

I am attempting to compile FreeSWITCH (

I get the following error.

  Compiling src/switch_core.c ...
  src/switch_core.c: In function `switch_core_setrlimits':
  src/switch_core.c:795: error: `RLIMIT_AS' undeclared (first use in this

Some of the other BSDs apparently don't have it either but FreeBSD has
it defined in  /usr/include/sys/resource.h  as

  #define RLIMIT_AS       RLIMIT_VMEM     /* standard name for RLIMIT_VMEM */

Apparently it is also defined in Linux as well.

Should this be added to DragonFly?

More information about the Bugs mailing list