aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/networking/streams/stream_service_systemd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/networking/streams/stream_service_systemd.c')
-rw-r--r--src/libstrongswan/networking/streams/stream_service_systemd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/networking/streams/stream_service_systemd.c b/src/libstrongswan/networking/streams/stream_service_systemd.c
index 64b92836a..5c6b3f690 100644
--- a/src/libstrongswan/networking/streams/stream_service_systemd.c
+++ b/src/libstrongswan/networking/streams/stream_service_systemd.c
@@ -29,6 +29,11 @@
*/
stream_service_t *stream_service_create_systemd(char *uri, int backlog)
{
+#ifndef HAVE_SD_LISTEN_FDS_WITH_NAMES
+ DBG1(DBG_NET, "unable to open stream URI '%s': named systemd sockets not "
+ "supported", uri);
+ return NULL;
+#else
int i, num_fds, fd;
char **fdmap;
@@ -62,4 +67,5 @@ stream_service_t *stream_service_create_systemd(char *uri, int backlog)
return NULL;
}
return stream_service_create_from_fd(fd);
+#endif
}