projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suppress UBSan warnings in the xoshiro implementation.
[tinc]
/
src
/
system.h
diff --git
a/src/system.h
b/src/system.h
index
4b428b1
..
b3d9e0a
100644
(file)
--- 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
/*
system.h -- system headers
Copyright (C) 1998-2005 Ivo Timmermans
- 2003-201
3
Guus Sliepen <guus@tinc-vpn.org>
+ 2003-201
6
Guus Sliepen <guus@tinc-vpn.org>
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
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,9
+21,6
@@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __TINC_SYSTEM_H__
-#define __TINC_SYSTEM_H__
-
#include "../config.h"
#include "have.h"
#include "../config.h"
#include "have.h"
@@
-29,12
+29,14
@@
# define strsignal(p) ""
#endif
# define strsignal(p) ""
#endif
+#if _____LP64_____
+#define SUBNET_HASH_SIZE 0x10000
+#else
+#define SUBNET_HASH_SIZE 0x1000
+#endif
+
/* Other functions */
#include "dropin.h"
/* Other functions */
#include "dropin.h"
-#ifndef HAVE_SOCKLEN_T
-typedef int socklen_t;
#endif
#endif
-
-#endif /* __TINC_SYSTEM_H__ */