Add needed changes to make mc buildable using make under FreeBSD

This commit is contained in:
Anis Elleuch
2016-02-24 20:54:34 +01:00
parent 54a86c69e1
commit cac451c83e
2 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -150,6 +150,9 @@ is_supported_os() {
"SunOS")
supported=1
;;
"FreeBSD")
supported=1
;;
"*")
supported=0
;;
@@ -163,7 +166,7 @@ is_supported_os() {
is_supported_arch() {
local supported
case ${UNAME##* } in
"x86_64")
"x86_64" | "amd64")
supported=1
;;
"arm"*)
+3 -2
View File
@@ -19,8 +19,9 @@ _init() {
shopt -s extglob
PWD=$(env pwd)
GOPATH=$(go env GOPATH)
# Fetch real paths instead of symlinks before comparing them
PWD=$(env pwd -P)
GOPATH=$(realpath $(go env GOPATH))
}
main() {