From 59ea885da07c0916fb5917efb5538df2ecec1553 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Fri, 23 Apr 2021 20:16:50 +0900 Subject: Treat 127.0.0.1, [::1], and hostname as localhost --- fm.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fm.h') diff --git a/fm.h b/fm.h index 594b457..b6d91fb 100644 --- a/fm.h +++ b/fm.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -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); -- cgit v1.2.3