1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

more HOST_NAME_MAX fix

This commit is contained in:
Antonin Portelli 2024-03-07 15:26:01 +09:00
parent f17b8de907
commit 2b4399f8b1

View File

@ -30,6 +30,10 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk>
using namespace std;
using namespace Grid;
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
#endif
int main (int argc, char ** argv)
{
char hostname[HOST_NAME_MAX+1];