From ee9a87764de879e0eebf905e01fc895eb0101d0e Mon Sep 17 00:00:00 2001 From: Rumble Date: Fri, 3 Jan 2014 16:36:00 -0500 Subject: [PATCH] Update sysdep.h Added Mac OS X define for rlimit (thanks Kyle) --- src/sysdep.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sysdep.h b/src/sysdep.h index 79b510e..51ee914 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -325,6 +325,7 @@ struct in_addr { #define cpp_extern /* Nothing */ #endif +#ifndef CIRCLE_OS_X /* Guess if we have the getrlimit()/setrlimit() functions */ #if defined(RLIMIT_NOFILE) || defined (RLIMIT_OFILE) #define HAS_RLIMIT @@ -332,6 +333,7 @@ struct in_addr { # define RLIMIT_NOFILE RLIMIT_OFILE #endif #endif +#endif /*CIRCLE_OS_X*/ /* Make sure we have STDERR_FILENO */ #ifndef STDERR_FILENO