summaryrefslogtreecommitdiff
path: root/src/node_report.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_report.cc')
-rw-r--r--src/node_report.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/node_report.cc b/src/node_report.cc
index 1a459a2d1c..8f882b9887 100644
--- a/src/node_report.cc
+++ b/src/node_report.cc
@@ -47,15 +47,6 @@
extern char** environ;
#endif
-#ifdef __POSIX__
-# include <netdb.h> // MAXHOSTNAMELEN on Solaris.
-# include <sys/param.h> // MAXHOSTNAMELEN on Linux and the BSDs.
-#endif // __POSIX__
-
-#ifndef MAXHOSTNAMELEN
-# define MAXHOSTNAMELEN 256
-#endif // MAXHOSTNAMELEN
-
namespace report {
using node::arraysize;
using node::Environment;
@@ -377,7 +368,7 @@ static void PrintVersionInformation(JSONWriter* writer) {
writer->json_keyvalue("osMachine", os_info.machine);
}
- char host[MAXHOSTNAMELEN + 1];
+ char host[UV_MAXHOSTNAMESIZE];
size_t host_size = sizeof(host);
if (uv_os_gethostname(host, &host_size) == 0)