projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use nostdinc instead of overriding DEFAULT_INCLUDES.
[tinc]
/
src
/
utils.c
diff --git
a/src/utils.c
b/src/utils.c
index
8fbc710
..
65ba4b9
100644
(file)
--- a/
src/utils.c
+++ b/
src/utils.c
@@
-191,6
+191,11
@@
bool check_id(const char *id) {
return true;
}
+/* Windows doesn't define HOST_NAME_MAX. */
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif
+
char *replace_name(const char *name) {
char *ret_name;