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,
src = mputprintf(src, "boolean %s_template::match(const %s& other_value, "
"boolean) const\n"
"{\n"
"if (!other_value.is_bound()) return FALSE;"
"if (!other_value.is_bound()) return FALSE;\n"
"return match(NULL_VALUE);\n"
"}\n\n", name, name);
......
......@@ -29,7 +29,7 @@
#include "Runtime.hh"
#include "Charstring.hh"
#ifdef LINUX
#if defined(LINUX) && !defined(ALPINE_LINUX)
#include <ucontext.h>
#include <dlfcn.h>
#include <execinfo.h>
......@@ -41,7 +41,7 @@ using namespace __cxxabiv1;
#endif
#ifdef LINUX
#if defined(LINUX) && !defined(ALPINE_LINUX)
const size_t MAX_DEPTH=100;
......
......@@ -47,6 +47,10 @@
#include "Error.hh"
#include "Event_Handler.hh"
#if defined(USE_EPOLL) && !defined(__uint32_t)
typedef unsigned int __uint32_t;
#endif
class FdMap {
public:
......
......@@ -40,7 +40,7 @@
#include "Error.hh"
#include "Encdec.hh"
#include "TCov.hh"
#ifdef LINUX
#if defined(LINUX) && !defined(ALPINE_LINUX)
#include <execinfo.h>
#endif
......@@ -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");
}
fflush(stderr);
#ifdef LINUX
#if defined(LINUX) && !defined(ALPINE_LINUX)
int nptrs;
void *buffer[100];
nptrs = backtrace(buffer, 100);
......
......@@ -38,7 +38,7 @@
#include "Encdec.hh"
#include "TitanLoggerApi.hh"
#include "TCov.hh"
#ifdef LINUX
#if defined(LINUX) && !defined(ALPINE_LINUX)
#include <execinfo.h>
#endif
......@@ -62,7 +62,7 @@ void signal_handler(int signum)
} else {
retval = write(STDERR_FILENO, abortcall , sizeof(abortcall)-1); // sizeof includes \0
}
#ifdef LINUX
#if defined(LINUX) && !defined(ALPINE_LINUX)
int nptrs;
void *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