mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
Merge pull request #831 from Gottox/fix-musl
fix building with musl libc
This commit is contained in:
commit
33ab7faec4
2 changed files with 7 additions and 3 deletions
|
@ -57,6 +57,10 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GLIBC__
|
||||||
|
#define canonicalize_file_name(p) realpath(p, NULL)
|
||||||
|
#endif
|
||||||
|
|
||||||
/****
|
/****
|
||||||
* #define RSDIR_DEBUG 1
|
* #define RSDIR_DEBUG 1
|
||||||
****/
|
****/
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
#if defined(__linux__) && defined(__GLIBC__)
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
|
@ -110,13 +110,13 @@ static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames
|
||||||
free(symbollist);
|
free(symbollist);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
#else // defined(__linux__) && defined(__GLIBC__)
|
||||||
static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63)
|
static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63)
|
||||||
{
|
{
|
||||||
(void) max_frames;
|
(void) max_frames;
|
||||||
|
|
||||||
fprintf(out, "TODO: 2016/01/01 print_stacktrace not implemented yet for WINDOWS_SYS and ANDROID\n");
|
fprintf(out, "TODO: 2016/01/01 print_stacktrace not implemented yet for WINDOWS_SYS and ANDROID\n");
|
||||||
}
|
}
|
||||||
#endif // !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
#endif // defined(__linux__) && defined(__GLIBC__)
|
||||||
|
|
||||||
#endif // _STACKTRACE_H_
|
#endif // _STACKTRACE_H_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue