Ticket #12515: usb_devlist2h.awk-workaround.patch

File usb_devlist2h.awk-workaround.patch, 961 bytes (added by dknoto, 9 years ago)

After applying this second workaround the system compiles correctly.

  • src/apps/devices/usb_devlist2h.awk

    From edd47ff90a923deef6888db5c0b11a46bd58c71b Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Dariusz=20Knoci=C5=84ski?= <dknoto@gmail.com>
    Date: Fri, 18 Dec 2015 22:31:30 +0100
    Subject: [PATCH] usb_devlist2h.awk: added workaround due to an error in the
     operation of the logical operators '||' and '&&' in awk-4.1.3.
    
    ---
     src/apps/devices/usb_devlist2h.awk | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/apps/devices/usb_devlist2h.awk b/src/apps/devices/usb_devlist2h.awk
    index 3bd7f80..47fd2cb 100644
    a b NR == 1 {  
    5656
    5757    next
    5858}
    59 NF > 0 && $1 == "vendor" {
     59$1 == "vendor" {
    6060    nvendors++
    6161
    6262    vendorindex[$2] = nvendors;     # record index for this name, for later.
    NF > 0 && $1 == "vendor" {  
    101101
    102102    next
    103103}
    104 NF > 0 && $1 == "product" {
     104$1 == "product" {
    105105    nproducts++
    106106
    107107    products[nproducts, 1] = $2;        # vendor name