summaryrefslogtreecommitdiffstats
path: root/src/btop_tools.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/btop_tools.hpp')
-rw-r--r--src/btop_tools.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/btop_tools.hpp b/src/btop_tools.hpp
index 7bb0445..adaaf02 100644
--- a/src/btop_tools.hpp
+++ b/src/btop_tools.hpp
@@ -32,6 +32,13 @@ tab-size = 4
using std::string, std::vector, std::atomic, std::to_string, std::regex, std::tuple, std::array;
+#ifndef HOST_NAME_MAX
+#if defined(__APPLE__)
+#define HOST_NAME_MAX 255
+#else
+#define HOST_NAME_MAX 64
+#endif /* __APPLE__ */
+#endif /* HOST_NAME_MAX */
//? ------------------------------------------------- NAMESPACES ------------------------------------------------------