Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Allow to remove systemd library
[src/app-framework-binder.git]
/
src
/
afb-socket.c
diff --git
a/src/afb-socket.c
b/src/afb-socket.c
index
cf788de
..
754baea
100644
(file)
--- a/
src/afb-socket.c
+++ b/
src/afb-socket.c
@@
-32,10
+32,13
@@
#include "afb-fdev.h"
#include "afb-socket.h"
#include "afb-fdev.h"
#include "afb-socket.h"
-#include "systemd.h"
#include "fdev.h"
#include "verbose.h"
#include "fdev.h"
#include "verbose.h"
+#if WITH_SYSTEMD
+#include "systemd.h"
+#endif
+
#define BACKLOG 5
/******************************************************************************/
#define BACKLOG 5
/******************************************************************************/
@@
-225,11
+228,11
@@
static int open_tcp(const char *spec, int server, int reuseaddr)
*/
static int open_systemd(const char *spec)
{
*/
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;
errno = EAFNOSUPPORT;
return -1;
-#else
- return systemd_fds_for(spec);
#endif
}
#endif
}