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:11 UTC
[trafficserver] 01/03: lib/ts/ts_error.h: define throw
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>.