summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-05-20 18:27:10 +0200
committerChristian Göttsche <cgzones@googlemail.com>2021-05-20 19:16:29 +0200
commitee9e7edbc18cdc37262feae9eb65ee4be68bf52b (patch)
tree6d89122880180fea62e97259360caf18201e2f5f /configure.ac
parenta62987c7879050cbb09a02437eb1d10ed9352eee (diff)
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
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d75422d8..78250621 100644
--- a/configure.ac
+++ b/configure.ac
@@ -298,6 +298,11 @@ fi
if test "$enable_static" = yes; then
AC_SEARCH_LIBS([Gpm_GetEvent], [gpm])
fi
+if test "$my_htop_platform" = "solaris"; then
+ # 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.
+ AC_DEFINE([ERR], [(-1)], [Predefine ncurses macro.])
+fi
AC_ARG_ENABLE([hwloc],

© 2014-2024 Faster IT GmbH | imprint | privacy policy