We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89f9c68 + bc09471 commit 78e2e20Copy full SHA for 78e2e20
sole.hpp
@@ -187,9 +187,6 @@ namespace std {
187
# include <sys/time.h>
188
# include <sys/types.h>
189
# include <unistd.h>
190
-# if defined(__VMS)
191
- namespace { enum { MAXHOSTNAMELEN = 64 }; }
192
-# endif
193
# define $unix $yes
194
#endif
195
@@ -591,7 +588,7 @@ namespace sole {
591
588
})
592
589
593
590
$unix({
594
- char name[MAXHOSTNAMELEN];
+ char name[HOST_NAME_MAX];
595
if (gethostname(name, sizeof(name)))
596
return $no("cannot get host name") false;
597
0 commit comments