blob: 67c8b1bcfd1a4ed259751fe21617fcf3c4630fc6 [file] [log] [blame]
Andrew Geissler32b11992021-03-31 13:37:05 -05001From 82e51fb8ba2640b318826ef4e17b0f5c09c8dded Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 8 Mar 2021 20:10:18 -0800
4Subject: [PATCH] nsswitch.y: Replace %empty bison extension
5
6POSIX compliant yacc do not understand %empty therefore replace it with
7/* empty */
8
9https://github.com/pikhq/musl-nscd/issues/13
10
11Upstream-Status: Pending
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/nsswitch.y | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17diff --git a/src/nsswitch.y b/src/nsswitch.y
18index 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--
492.30.1
50