sbin: build ping if at least one of INET & INET6 is enabled
It does not build (and serves no purpose) if neither is true (i.e., building WITHOUT_INET and WITHOUT_INET6). Also add an explicit error in ping to make this case clear. PR: 260082 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b8cf1c5c30
commit
a4ef9e58bc
@ -53,7 +53,6 @@ SUBDIR=adjkerntz \
|
|||||||
nfsiod \
|
nfsiod \
|
||||||
nos-tun \
|
nos-tun \
|
||||||
pfilctl \
|
pfilctl \
|
||||||
ping \
|
|
||||||
rcorder \
|
rcorder \
|
||||||
reboot \
|
reboot \
|
||||||
recoverdisk \
|
recoverdisk \
|
||||||
@ -68,6 +67,10 @@ SUBDIR=adjkerntz \
|
|||||||
tunefs \
|
tunefs \
|
||||||
umount
|
umount
|
||||||
|
|
||||||
|
.if ${MK_INET} != "no" || ${MK_INET6} != "no"
|
||||||
|
SUBDIR+= ping
|
||||||
|
.endif
|
||||||
|
|
||||||
SUBDIR.${MK_CCD}+= ccdconfig
|
SUBDIR.${MK_CCD}+= ccdconfig
|
||||||
SUBDIR.${MK_CXX}+= devd
|
SUBDIR.${MK_CXX}+= devd
|
||||||
SUBDIR.${MK_HAST}+= hastctl
|
SUBDIR.${MK_HAST}+= hastctl
|
||||||
|
@ -57,6 +57,8 @@ __FBSDID("$FreeBSD$");
|
|||||||
#define OPTSTR PING4OPTS
|
#define OPTSTR PING4OPTS
|
||||||
#elif defined(INET6)
|
#elif defined(INET6)
|
||||||
#define OPTSTR PING6OPTS
|
#define OPTSTR PING6OPTS
|
||||||
|
#else
|
||||||
|
#error At least one of INET and INET6 is required
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user