aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-04-23 11:16:50 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-04-23 11:16:50 +0000
commit59ea885da07c0916fb5917efb5538df2ecec1553 (patch)
tree7788717c19054ae6300f222374c1179e00bf9c8d /fm.h
parentUpdate ChangeLog (diff)
downloadw3m-59ea885da07c0916fb5917efb5538df2ecec1553.tar.gz
w3m-59ea885da07c0916fb5917efb5538df2ecec1553.zip
Treat 127.0.0.1, [::1], and hostname as localhost
Diffstat (limited to '')
-rw-r--r--fm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fm.h b/fm.h
index 594b457..b6d91fb 100644
--- a/fm.h
+++ b/fm.h
@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -135,6 +136,10 @@ void bzero(void *, int);
#define DICTBUFFERNAME "*dictionary*"
#endif /* USE_DICT */
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif
+
/*
* Line Property
*/
@@ -837,6 +842,7 @@ global char PreserveTimestamp init(TRUE);
global char ArgvIsURL init(TRUE);
global char MetaRefresh init(FALSE);
global char LocalhostOnly init(FALSE);
+global char* HostName init(NULL);
global char fmInitialized init(FALSE);
global char QuietMessage init(FALSE);