]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Conf: build fix for older bisons
authorMaria Matejka <mq@ucw.cz>
Fri, 29 Nov 2024 10:27:30 +0000 (11:27 +0100)
committerMaria Matejka <mq@ucw.cz>
Fri, 29 Nov 2024 10:27:30 +0000 (11:27 +0100)
Typed blocks are probably a too new extension to rely on.

filter/config.Y

index 144bbdef662f19faabc1a9f7304383089a083e4d..32cfe51c0442469872765ce19b89336ba49d323e 100644 (file)
@@ -515,10 +515,10 @@ type:
        }
    }
  | ENUM
-   <i>{ $$ = cf_maybe_exit_filters(); }
+   { $<i>$ = cf_maybe_exit_filters(); }
    enum_type
    {
-     if ($2) cf_enter_filters();
+     if ($<i>2) cf_enter_filters();
      $$ = $3;
    }
  ;