diff options
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index 90bb898a3..e7dcba1dc 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -356,6 +356,18 @@ # endif #endif +/* + * Arg 2 type for gethostname in case it hasn't been defined in config file. + */ + +#ifndef GETHOSTNAME_TYPE_ARG2 +# ifdef USE_WINSOCK +# define GETHOSTNAME_TYPE_ARG2 int +# else +# define GETHOSTNAME_TYPE_ARG2 size_t +# endif +#endif + /* Below we define some functions. They should 4. set the SIGALRM signal timeout |