[systemd-devel] [PATCH] Fix compilation error (PathSpec redefined)
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Thu Dec 22 04:09:34 PST 2011
a8d887832 (service: handle services with racy daemonization gracefully)
added a re-definition of typedef PathSpec which broke other files icluding
both service.h and path.h. Fix by including path.h instead of re-defining.
---
Just noticed today that systemd doesn't compile after make clean.
src/service.h | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/service.h b/src/service.h
index 15d58cc..2102826 100644
--- a/src/service.h
+++ b/src/service.h
@@ -25,6 +25,7 @@
typedef struct Service Service;
#include "unit.h"
+#include "path.h"
#include "ratelimit.h"
typedef enum ServiceState {
@@ -86,8 +87,6 @@ typedef enum NotifyAccess {
_NOTIFY_ACCESS_INVALID = -1
} NotifyAccess;
-typedef struct PathSpec PathSpec;
-
struct Service {
Meta meta;
--
1.7.8.158.g98663af
More information about the systemd-devel
mailing list