aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/Makefile5
-rw-r--r--sbin/ping/main.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/sbin/Makefile b/sbin/Makefile
index 7eb497e3e3dd..69cf51a83e26 100644
--- a/sbin/Makefile
+++ b/sbin/Makefile
@@ -53,7 +53,6 @@ SUBDIR=adjkerntz \
nfsiod \
nos-tun \
pfilctl \
- ping \
rcorder \
reboot \
recoverdisk \
@@ -68,6 +67,10 @@ SUBDIR=adjkerntz \
tunefs \
umount
+.if ${MK_INET} != "no" || ${MK_INET6} != "no"
+SUBDIR+= ping
+.endif
+
SUBDIR.${MK_CCD}+= ccdconfig
SUBDIR.${MK_CXX}+= devd
SUBDIR.${MK_HAST}+= hastctl
diff --git a/sbin/ping/main.c b/sbin/ping/main.c
index c021e2c26b14..1d0b714f1480 100644
--- a/sbin/ping/main.c
+++ b/sbin/ping/main.c
@@ -57,6 +57,8 @@ __FBSDID("$FreeBSD$");
#define OPTSTR PING4OPTS
#elif defined(INET6)
#define OPTSTR PING6OPTS
+#else
+#error At least one of INET and INET6 is required
#endif
int