Mercurial > dnsbl
changeset 96:1edd4e8d3a60
fix missing include, not all systems define HOST_NAME_MAX
author | carl |
---|---|
date | Wed, 21 Sep 2005 13:25:16 -0700 |
parents | 53a2fbe3f761 |
children | cc3b79349c9c |
files | src/context.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/context.cpp Wed Sep 21 12:50:32 2005 -0700 +++ b/src/context.cpp Wed Sep 21 13:25:16 2005 -0700 @@ -9,6 +9,7 @@ #include "includes.h" // needed for socket io +#include <unistd.h> #include <sys/ioctl.h> #include <net/if.h> #include <arpa/inet.h> @@ -54,6 +55,9 @@ char *token_white; char *token_myhostname; +#ifndef HOST_NAME_MAX + #define HOST_NAME_MAX 255 +#endif char myhostname[HOST_NAME_MAX+1]; verify_map verifiers;