summaryrefslogtreecommitdiff
path: root/src/nss-myhostname/ifconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nss-myhostname/ifconf.h')
-rw-r--r--src/nss-myhostname/ifconf.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nss-myhostname/ifconf.h b/src/nss-myhostname/ifconf.h
index 2764a0aa0f..cd598d2b43 100644
--- a/src/nss-myhostname/ifconf.h
+++ b/src/nss-myhostname/ifconf.h
@@ -1,9 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef fooifconfhfoo
-#define fooifconfhfoo
-
-#include <sys/socket.h>
+#pragma once
/***
This file is part of systemd.
@@ -27,6 +24,7 @@
#include <inttypes.h>
#include <sys/types.h>
#include <assert.h>
+#include <sys/socket.h>
struct address {
unsigned char family;
@@ -68,6 +66,3 @@ static inline int address_compare(const void *_a, const void *_b) {
return 0;
}
-
-
-#endif