summaryrefslogtreecommitdiff
path: root/src/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-16 15:37:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-16 15:37:52 +0200
commitf61448083198dc0e4e0d19a916bcd478336cc85d (patch)
treee9325f22f715d5788b46e5ecbeb6e2fc94a73010 /src/socket-util.h
parent6e200d55ae538fc29360cdaa9863f30cdddf58f3 (diff)
systemctl: add support for delayed shutdown, similar to sysv in style
Diffstat (limited to 'src/socket-util.h')
-rw-r--r--src/socket-util.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/socket-util.h b/src/socket-util.h
index 86c9e47809..b5cb2a844d 100644
--- a/src/socket-util.h
+++ b/src/socket-util.h
@@ -30,14 +30,16 @@
#include "macro.h"
#include "util.h"
+union sockaddr_union {
+ struct sockaddr sa;
+ struct sockaddr_in in4;
+ struct sockaddr_in6 in6;
+ struct sockaddr_un un;
+ struct sockaddr_storage storage;
+};
+
typedef struct SocketAddress {
- union {
- struct sockaddr sa;
- struct sockaddr_in in4;
- struct sockaddr_in6 in6;
- struct sockaddr_un un;
- struct sockaddr_storage storage;
- } sockaddr;
+ union sockaddr_union sockaddr;
/* We store the size here explicitly due to the weird
* sockaddr_un semantics for abstract sockets */