mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-10 03:04:36 +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,14 @@ in the source distribution for its full text.
|
||||
|
||||
#include <zone.h>
|
||||
#include <sys/proc.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 "Settings.h"
|
||||
|
||||
|
Reference in New Issue
Block a user