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

[trafficserver] branch master updated (fc69c42 -> 446a423)

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

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


    from fc69c42  Move Brotli library check into the library check section CFLAGS is getting set the default -g -O2.  When optimization is set on CFLAGS or CXXFLAGS, optimization will not be added to the flags.
     new 5b4d0ad  lib/ts/ts_error.h: define throw
     new 1698035  lib/ts/ink_{defs,error}: modify imports
     new 446a423  lib/ts/ink_sys_control: work around a glibc'ism

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 lib/ts/ink_defs.cc        | 1 -
 lib/ts/ink_error.h        | 6 ++++++
 lib/ts/ink_sys_control.cc | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

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

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

Posted by zw...@apache.org.
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>.

[trafficserver] 01/03: lib/ts/ts_error.h: define throw

Posted by zw...@apache.org.
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 5b4d0adb0d27b99f9a72a173c1e4a1fba86dfcb0
Author: Johan Bergström <bu...@bergstroem.nu>
AuthorDate: Tue Nov 7 11:38:49 2017 -0300

    lib/ts/ts_error.h: define throw
    
    Some platforms lacks __THROW (musl); since glibc does equal effort,
    lets just define it if it isn't.
---
 lib/ts/ink_error.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/ts/ink_error.h b/lib/ts/ink_error.h
index 34309f9..d695d52 100644
--- a/lib/ts/ink_error.h
+++ b/lib/ts/ink_error.h
@@ -36,6 +36,11 @@
 #include "ts/ink_platform.h"
 #include "ts/ink_apidefs.h"
 
+// throw isn't available in every libc (musl, ..)
+#ifndef __THROW
+#define __THROW
+#endif
+
 // This magic exit code is used to signal that the crashing process cannot
 // be recovered from a restart of said process
 //

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

[trafficserver] 02/03: lib/ts/ink_{defs,error}: modify imports

Posted by zw...@apache.org.
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 169803565419e163f3470ce8bc38ecac2dd4d354
Author: Johan Bergström <bu...@bergstroem.nu>
AuthorDate: Tue Nov 7 11:46:58 2017 -0300

    lib/ts/ink_{defs,error}: modify imports
    
    `<linux/sysctl.h>` seems unused (and additionally breaks if using
    musl, since it assumes it lives elsewhere) and defs missed the
    *printf declaraitons.
---
 lib/ts/ink_defs.cc | 1 -
 lib/ts/ink_error.h | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ts/ink_defs.cc b/lib/ts/ink_defs.cc
index 6d63a02..65b02f5 100644
--- a/lib/ts/ink_defs.cc
+++ b/lib/ts/ink_defs.cc
@@ -33,7 +33,6 @@
 #if defined(linux) || defined(freebsd) || defined(darwin)
 #include <sys/types.h>
 #include <sys/param.h>
-#include <sys/sysctl.h>
 #endif
 #if defined(linux)
 #include <sys/utsname.h>
diff --git a/lib/ts/ink_error.h b/lib/ts/ink_error.h
index d695d52..1962c6e 100644
--- a/lib/ts/ink_error.h
+++ b/lib/ts/ink_error.h
@@ -33,6 +33,7 @@
 #define _ink_error_h_
 
 #include <stdarg.h>
+#include <stdio.h>
 #include "ts/ink_platform.h"
 #include "ts/ink_apidefs.h"
 

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