[type/__sysctl] Add Mac OS X support

This commit is contained in:
Takashi Yoshi 2018-12-14 13:06:31 +01:00
parent 566feba5b1
commit 45ff67c0f5
2 changed files with 8 additions and 2 deletions

View file

@ -32,6 +32,12 @@ case "$os" in
redhat|centos|ubuntu|debian|devuan|archlinux|coreos|netbsd)
flag='-w'
;;
macosx)
# NOTE: Older versions of Mac OS X require the -w option.
# Even though the flag is not mentioned in new man pages anymore,
# it still works.
flag='-w'
;;
freebsd|openbsd)
flag=''
;;

View file

@ -28,7 +28,7 @@ case "$os" in
:
;;
# BSD
freebsd|netbsd|openbsd)
freebsd|macosx|netbsd|openbsd)
:
;;
*)