X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsystem.h;h=0224fbea2d0c9cd47a1e9c9886900f25c05308b2;hb=0fe69908838248c28624beb540257892db6bdcbd;hp=2201ff312729d9fd0c3db4ee676a7cbba297c9a6;hpb=d10834e92015f1e0e5bf74e03b161b3a5dc363fb;p=tinc diff --git a/src/system.h b/src/system.h index 2201ff31..0224fbea 100644 --- a/src/system.h +++ b/src/system.h @@ -1,3 +1,6 @@ +#ifndef TINC_SYSTEM_H +#define TINC_SYSTEM_H + /* system.h -- system headers Copyright (C) 1998-2005 Ivo Timmermans @@ -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,8 +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" -#endif /* __TINC_SYSTEM_H__ */ +#endif