summaryrefslogtreecommitdiff
path: root/src/systemd/nm-sd-adapt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd/nm-sd-adapt.h')
-rw-r--r--src/systemd/nm-sd-adapt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/systemd/nm-sd-adapt.h b/src/systemd/nm-sd-adapt.h
index 010c8a80f6..cf27c1af1e 100644
--- a/src/systemd/nm-sd-adapt.h
+++ b/src/systemd/nm-sd-adapt.h
@@ -140,8 +140,12 @@ sd_notify (int unset_environment, const char *state)
}
/* Can't include both net/if.h and linux/if.h; so have to define this here */
+#ifndef IF_NAMESIZE
+#define IF_NAMESIZE 16
+#endif
+
#ifndef IFNAMSIZ
-#define IFNAMSIZ 16
+#define IFNAMSIZ IF_NAMESIZE
#endif
#ifndef MAX_HANDLE_SZ