Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
36ef1a93
Commit
36ef1a93
authored
Dec 05, 2010
by
Hisham Muhammad
Browse files
make htop friendly to uclibc (thanks to Matt for the report)
parent
72dbb72b
Changes
3
Hide whitespace changes
Inline
Side-by-side
CRT.c
View file @
36ef1a93
...
...
@@ -11,7 +11,9 @@ in the source distribution for its full text.
#include <signal.h>
#include <stdlib.h>
#include <stdbool.h>
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
#include "String.h"
...
...
@@ -125,12 +127,14 @@ static void CRT_handleSIGSEGV(int sgn) {
CRT_done
();
#if __linux
fprintf
(
stderr
,
"
\n\n
htop "
VERSION
" aborting. Please report bug at http://htop.sf.net
\n
"
);
#else
fprintf
(
stderr
,
"
\n\n
htop "
VERSION
" aborting. Unsupported platform.
\n
"
);
#endif
#ifdef HAVE_EXECINFO_H
size_t
size
=
backtrace
(
backtraceArray
,
sizeof
(
backtraceArray
));
fprintf
(
stderr
,
"Backtrace:
\n
"
);
backtrace_symbols_fd
(
backtraceArray
,
size
,
2
);
#endif
#else
fprintf
(
stderr
,
"
\n\n
htop "
VERSION
" aborting. Unsupported platform.
\n
"
);
#endif
abort
();
}
...
...
CRT.h
View file @
36ef1a93
...
...
@@ -14,7 +14,9 @@ in the source distribution for its full text.
#include <signal.h>
#include <stdlib.h>
#include <stdbool.h>
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
#include "String.h"
...
...
configure.ac
View file @
36ef1a93
...
...
@@ -25,6 +25,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h curses.h],[:],[
missing_headers="$missing_headers $ac_header"
])
AC_CHECK_HEADERS([execinfo.h],[:],[:])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment