X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsystem.h;h=b3d9e0ab4c6e5b346aac194958063e3cf695b05c;hb=8c10a4131f19dc27b0bc56ef48ae481d1fa03cb0;hp=2201ff312729d9fd0c3db4ee676a7cbba297c9a6;hpb=d10834e92015f1e0e5bf74e03b161b3a5dc363fb;p=tinc diff --git a/src/system.h b/src/system.h index 2201ff31..b3d9e0ab 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,9 +21,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_SYSTEM_H__ -#define __TINC_SYSTEM_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