fix building on Cygwin

Cygwin still doesn't support any of the backtrace functions. Also, remove a
spurious newline from a debug message.

Fixes #2993
This commit is contained in:
Kurtis Rader
2016-05-19 19:27:22 -07:00
parent 46be5ac468
commit 7c24369454
5 changed files with 12 additions and 21 deletions

View File

@@ -332,14 +332,6 @@ int killpg(int pgr, int sig) {
}
#endif
#ifndef HAVE_BACKTRACE
int backtrace(void **buffer, int size) { return 0; }
#endif
#ifndef HAVE_BACKTRACE_SYMBOLS_FD
char **backtrace_symbols_fd(void *const *buffer, int size, int fd) { return 0; }
#endif
#ifndef HAVE_NAN
double nan(char *tagp) { return 0.0 / 0.0; }
#endif