Skip to content

Commit dae55b4

Browse files
committed
Define HOST_NAME_MAX if it is undefined.
1 parent 53e000c commit dae55b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/raftable/worker.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
#define RAFTABLE_PEERS_MAX (64)
99

10+
#ifndef HOST_NAME_MAX
11+
#define HOST_NAME_MAX 64
12+
#endif
13+
1014
typedef struct HostPort {
1115
bool up;
1216
char host[HOST_NAME_MAX + 1];

0 commit comments

Comments
 (0)