summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2017-12-10 17:34:05 +0000
committerstsp <stsp@openbsd.org>2017-12-10 17:34:05 +0000
commit9cb7ed3414345669df7bf848bf8b1ce32861886a (patch)
tree11b54043e2039eee105cc25aa32fd1d98a9b1747
parentAdd support for the internal PHY on the Allwinner H3. From Stephen Graf. (diff)
downloadwireguard-openbsd-9cb7ed3414345669df7bf848bf8b1ce32861886a.tar.xz
wireguard-openbsd-9cb7ed3414345669df7bf848bf8b1ce32861886a.zip
add #ifndef SMALL to slaacd.c as needed to fix 'make release'
-rw-r--r--sbin/slaacd/slaacd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/slaacd/slaacd.c b/sbin/slaacd/slaacd.c
index 88dc4ec70f6..628031f9049 100644
--- a/sbin/slaacd/slaacd.c
+++ b/sbin/slaacd/slaacd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slaacd.c,v 1.13 2017/12/10 10:07:54 florian Exp $ */
+/* $OpenBSD: slaacd.c,v 1.14 2017/12/10 17:34:05 stsp Exp $ */
/*
* Copyright (c) 2017 Florian Obser <florian@openbsd.org>
@@ -161,7 +161,9 @@ main(int argc, char *argv[])
int pipe_main2engine[2];
int icmp6sock, on = 1;
int frontend_routesock, rtfilter;
+#ifndef SMALL
int control_fd;
+#endif /* SMALL */
csock = SLAACD_SOCKET;
@@ -316,10 +318,12 @@ BROKEN if (pledge("rpath stdio sendfd cpath", NULL) == -1)
main_imsg_compose_frontend_fd(IMSG_ROUTESOCK, 0, frontend_routesock);
+#ifndef SMALL
if ((control_fd = control_init(csock)) == -1)
fatalx("control socket setup failed");
main_imsg_compose_frontend_fd(IMSG_CONTROLFD, 0, control_fd);
+#endif /* SMALL */
main_imsg_compose_frontend(IMSG_STARTUP, 0, NULL, 0);