#include "afb-fdev.h"
#include "afb-socket.h"
-#include "systemd.h"
#include "fdev.h"
#include "verbose.h"
+#if WITH_SYSTEMD
+#include "systemd.h"
+#endif
+
#define BACKLOG 5
/******************************************************************************/
*/
static int open_systemd(const char *spec)
{
-#if defined(NO_SYSTEMD_ACTIVATION)
+#if WITH_SYSTEMD
+ return systemd_fds_for(spec);
+#else
errno = EAFNOSUPPORT;
return -1;
-#else
- return systemd_fds_for(spec);
#endif
}