Skip to content

Commit 78e2e20

Browse files
authored
Merge pull request #26 from divinity76/patch-1
replace MAXHOSTNAMELEN with HOST_NAME_MAX
2 parents 89f9c68 + bc09471 commit 78e2e20

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sole.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ namespace std {
187187
# include <sys/time.h>
188188
# include <sys/types.h>
189189
# include <unistd.h>
190-
# if defined(__VMS)
191-
namespace { enum { MAXHOSTNAMELEN = 64 }; }
192-
# endif
193190
# define $unix $yes
194191
#endif
195192

@@ -591,7 +588,7 @@ namespace sole {
591588
})
592589

593590
$unix({
594-
char name[MAXHOSTNAMELEN];
591+
char name[HOST_NAME_MAX];
595592
if (gethostname(name, sizeof(name)))
596593
return $no("cannot get host name") false;
597594

0 commit comments

Comments
 (0)