Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 1 | From 82e51fb8ba2640b318826ef4e17b0f5c09c8dded Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 8 Mar 2021 20:10:18 -0800 |
| 4 | Subject: [PATCH] nsswitch.y: Replace %empty bison extension |
| 5 | |
| 6 | POSIX compliant yacc do not understand %empty therefore replace it with |
| 7 | /* empty */ |
| 8 | |
| 9 | https://github.com/pikhq/musl-nscd/issues/13 |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | src/nsswitch.y | 6 +++--- |
| 15 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 16 | |
| 17 | diff --git a/src/nsswitch.y b/src/nsswitch.y |
| 18 | index 107073b..0b7c71e 100644 |
| 19 | --- a/src/nsswitch.y |
| 20 | +++ b/src/nsswitch.y |
| 21 | @@ -38,7 +38,7 @@ top: |
| 22 | ; |
| 23 | |
| 24 | file: |
| 25 | - %empty { |
| 26 | + /* empty */ { |
| 27 | list_init(&$$); |
| 28 | } |
| 29 | | file line { |
| 30 | @@ -88,7 +88,7 @@ modifier: |
| 31 | ; |
| 32 | |
| 33 | modifiers: |
| 34 | - %empty { |
| 35 | + /* empty */ { |
| 36 | memcpy($$, default_actions, sizeof($$)); |
| 37 | } |
| 38 | | modifiers modifier { |
| 39 | @@ -112,7 +112,7 @@ item: |
| 40 | ; |
| 41 | |
| 42 | list: |
| 43 | - %empty { |
| 44 | + /* empty */ { |
| 45 | list_init(&$$); |
| 46 | } |
| 47 | | list item { |
| 48 | -- |
| 49 | 2.30.1 |
| 50 | |