Support autoconf's --runstatedir option.
[oweals/tinc.git] / src / vde_device.c
index d97a694fb1b27ad49bbd71531fb184737bceffd6..20302b0d9f44ff3e0cad0c8daa60a2c744678e9c 100644 (file)
@@ -50,7 +50,7 @@ static bool setup_device(void) {
        }
 
        if(!get_config_string(lookup_config(config_tree, "Device"), &device)) {
-               xasprintf(&device, LOCALSTATEDIR "/run/vde.ctl");
+               xasprintf(&device, RUNSTATEDIR "/vde.ctl");
        }
 
        get_config_string(lookup_config(config_tree, "Interface"), &iface);