#ifndef _REPL_GETHOSTBYNAME_H
#define _REPL_GETHOSTBYNAME_H

#include "compat.h"

#ifndef HOST_NAME_MAX
#  ifdef _USE_WIN32_
#    ifdef MAX_COMPUTERNAME_LENGTH
#      define HOST_NAME_MAX MAX_COMPUTERNAME_LENGTH
#    endif
#  else
#    define HOST_NAME_MAX 255
#  endif
#endif

int gethostname(char *name, size_t len);

#endif
