Commit cde006dc authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Added makefile switch for Alpine Linux



Change-Id: I56229d94f6a5887c1b2ffdda269aa02a6674eaf4
Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 483abaab
...@@ -6841,7 +6841,7 @@ static void defEmptyRecordTemplate(const char *name, const char *dispname, ...@@ -6841,7 +6841,7 @@ static void defEmptyRecordTemplate(const char *name, const char *dispname,
src = mputprintf(src, "boolean %s_template::match(const %s& other_value, " src = mputprintf(src, "boolean %s_template::match(const %s& other_value, "
"boolean) const\n" "boolean) const\n"
"{\n" "{\n"
"if (!other_value.is_bound()) return FALSE;" "if (!other_value.is_bound()) return FALSE;\n"
"return match(NULL_VALUE);\n" "return match(NULL_VALUE);\n"
"}\n\n", name, name); "}\n\n", name, name);
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "Runtime.hh" #include "Runtime.hh"
#include "Charstring.hh" #include "Charstring.hh"
#ifdef LINUX #if defined(LINUX) && !defined(ALPINE_LINUX)
#include <ucontext.h> #include <ucontext.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <execinfo.h> #include <execinfo.h>
...@@ -41,7 +41,7 @@ using namespace __cxxabiv1; ...@@ -41,7 +41,7 @@ using namespace __cxxabiv1;
#endif #endif
#ifdef LINUX #if defined(LINUX) && !defined(ALPINE_LINUX)
const size_t MAX_DEPTH=100; const size_t MAX_DEPTH=100;
......
...@@ -47,6 +47,10 @@ ...@@ -47,6 +47,10 @@
#include "Error.hh" #include "Error.hh"
#include "Event_Handler.hh" #include "Event_Handler.hh"
#if defined(USE_EPOLL) && !defined(__uint32_t)
typedef unsigned int __uint32_t;
#endif
class FdMap { class FdMap {
public: public:
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include "Error.hh" #include "Error.hh"
#include "Encdec.hh" #include "Encdec.hh"
#include "TCov.hh" #include "TCov.hh"
#ifdef LINUX #if defined(LINUX) && !defined(ALPINE_LINUX)
#include <execinfo.h> #include <execinfo.h>
#endif #endif
...@@ -67,7 +67,7 @@ void signal_handler(int signum) ...@@ -67,7 +67,7 @@ void signal_handler(int signum)
fprintf(stderr,"%s %s: %s\n",ts,stored_argv,signum==SIGABRT?"Abort was called":"Segmentation fault occurred"); fprintf(stderr,"%s %s: %s\n",ts,stored_argv,signum==SIGABRT?"Abort was called":"Segmentation fault occurred");
} }
fflush(stderr); fflush(stderr);
#ifdef LINUX #if defined(LINUX) && !defined(ALPINE_LINUX)
int nptrs; int nptrs;
void *buffer[100]; void *buffer[100];
nptrs = backtrace(buffer, 100); nptrs = backtrace(buffer, 100);
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include "Encdec.hh" #include "Encdec.hh"
#include "TitanLoggerApi.hh" #include "TitanLoggerApi.hh"
#include "TCov.hh" #include "TCov.hh"
#ifdef LINUX #if defined(LINUX) && !defined(ALPINE_LINUX)
#include <execinfo.h> #include <execinfo.h>
#endif #endif
...@@ -62,7 +62,7 @@ void signal_handler(int signum) ...@@ -62,7 +62,7 @@ void signal_handler(int signum)
} else { } else {
retval = write(STDERR_FILENO, abortcall , sizeof(abortcall)-1); // sizeof includes \0 retval = write(STDERR_FILENO, abortcall , sizeof(abortcall)-1); // sizeof includes \0
} }
#ifdef LINUX #if defined(LINUX) && !defined(ALPINE_LINUX)
int nptrs; int nptrs;
void *buffer[100]; void *buffer[100];
nptrs = backtrace(buffer, 100); nptrs = backtrace(buffer, 100);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment