summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtadvd/rtadvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rtadvd/rtadvd.c')
-rw-r--r--usr.sbin/rtadvd/rtadvd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 03ed974..4a9d276 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -151,7 +151,12 @@ main(argc, argv)
openlog(*argv, LOG_NDELAY|LOG_PID, LOG_DAEMON);
/* get command line options and arguments */
- while ((ch = getopt(argc, argv, "c:dDfR:s")) != -1) {
+#if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC)
+ while ((ch = getopt(argc, argv, "c:dDfP:R:s")) != -1)
+#else
+ while ((ch = getopt(argc, argv, "c:dDfR:s")) != -1)
+#endif
+ {
switch(ch) {
case 'c':
conffile = optarg;
OpenPOWER on IntegriCloud