mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
Solaris: handle ERR macro redefinitions
On OmniOS /usr/include/sys/regset.h redefines ERR to 13 - \r, breaking the Enter key. Since ncruses macros use the ERR macro, we can not use another name. Closes: #634
This commit is contained in:
@ -12,7 +12,15 @@ in the source distribution for its full text.
|
||||
#include "config.h" // IWYU pragma: keep
|
||||
|
||||
#include <kstat.h>
|
||||
|
||||
/* On OmniOS /usr/include/sys/regset.h redefines ERR to 13 - \r, breaking the Enter key.
|
||||
* Since ncruses macros use the ERR macro, we can not use another name.
|
||||
*/
|
||||
#undef ERR
|
||||
#include <libproc.h>
|
||||
#undef ERR
|
||||
#define ERR (-1)
|
||||
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
|
Reference in New Issue
Block a user