]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
linux: define IFALIASZ for old systems
authorVincent Bernat <bernat@luffy.cx>
Wed, 3 Jul 2013 21:03:24 +0000 (23:03 +0200)
committerVincent Bernat <bernat@luffy.cx>
Wed, 3 Jul 2013 21:03:24 +0000 (23:03 +0200)
src/daemon/priv-linux.c

index fef0a1f9f4864d8fda409ef7d30e35c0dc27c551..c78d569b2153a7f953c225653bbd75ddb5d22803 100644 (file)
@@ -206,6 +206,9 @@ asroot_iface_description_os(const char *name, const char *description)
        /* We could use netlink but this is a lot to do in a privileged
         * process. Just write to /sys/class/net/XXXX/ifalias. */
        char *file;
+#ifndef IFALIASZ
+# define IFALIASZ 256
+#endif
        char descr[IFALIASZ];
        FILE *fp;
        int rc;