X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsystem.h;h=0224fbea2d0c9cd47a1e9c9886900f25c05308b2;hb=2f2bda4d1953617b945f1222e008cb53edee162a;hp=09638dce21e53ef45002c48d0352872f147bf757;hpb=e70b5b5bd77bb66e8dd324c17d86d9bff151aa82;p=tinc diff --git a/src/system.h b/src/system.h index 09638dce..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-2009 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,29 +21,22 @@ 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" -#ifndef HAVE_STDBOOL_H -typedef int bool; -#define true 1 -#define false 0 -#endif - #ifndef HAVE_STRSIGNAL # 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__ */