X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsystem.h;h=0224fbea2d0c9cd47a1e9c9886900f25c05308b2;hb=ce4d55b72fd4290d4710f10e755f6dd9ed039d88;hp=4b428b173773618148dae83ac29920de82b49b45;hpb=34ea20af73a35cd918ce9dc25796bebf9493b49c;p=tinc diff --git a/src/system.h b/src/system.h index 4b428b17..0224fbea 100644 --- a/src/system.h +++ b/src/system.h @@ -1,7 +1,10 @@ +#ifndef TINC_SYSTEM_H +#define TINC_SYSTEM_H + /* system.h -- system headers Copyright (C) 1998-2005 Ivo Timmermans - 2003-2013 Guus Sliepen + 2003-2016 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,10 +21,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_SYSTEM_H__ -#define __TINC_SYSTEM_H__ - -#include "../config.h" +#include "config.h" #include "have.h" @@ -29,12 +29,14 @@ # define strsignal(p) "" #endif +#if _____LP64_____ +#define SUBNET_HASH_SIZE 0x10000 +#else +#define SUBNET_HASH_SIZE 0x1000 +#endif + /* Other functions */ #include "dropin.h" -#ifndef HAVE_SOCKLEN_T -typedef int socklen_t; #endif - -#endif /* __TINC_SYSTEM_H__ */