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:26 UTC

[trafficserver] branch 7.1.x updated: 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 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/7.1.x by this push:
     new 40e576e  lib/ts/ink_sys_control: work around a glibc'ism
40e576e is described below

commit 40e576ec9e6775aa0950623857c6ec377cf2e586
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
    (cherry picked from commit 446a4236b56a32af08712f3de45e69f5d8865e96)
---
 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 8cdc824..e1d3e71 100644
--- a/lib/ts/ink_sys_control.cc
+++ b/lib/ts/ink_sys_control.cc
@@ -30,7 +30,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>'].