You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/11/07 22:23:13 UTC

[trafficserver] 03/03: lib/ts/ink_sys_control: work around a glibc'ism

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 446a4236b56a32af08712f3de45e69f5d8865e96
Author: Johan Bergström <bu...@bergstroem.nu>
AuthorDate: Tue Nov 7 11:50:55 2017 -0300

    lib/ts/ink_sys_control: work around a glibc'ism
    
    `__rlimit_resource` only lives in GLIBC, so make the ifdef
    tighter.
    
    Fixes: https://github.com/apache/trafficserver/issues/2760
---
 lib/ts/ink_sys_control.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ts/ink_sys_control.cc b/lib/ts/ink_sys_control.cc
index 0ee26c0..31677a9 100644
--- a/lib/ts/ink_sys_control.cc
+++ b/lib/ts/ink_sys_control.cc
@@ -32,7 +32,7 @@ ink_max_out_rlimit(int which, bool max_it, bool unlim_it)
 {
   struct rlimit rl;
 
-#if defined(linux)
+#if defined(__GLIBC__)
 #define MAGIC_CAST(x) (enum __rlimit_resource)(x)
 #else
 #define MAGIC_CAST(x) x

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.