Dash:
[t2.git] / package / base / coreutils / hotfix.patch.musl
blob4ce1ec8006d78f123499e840a6424dacbec0cf52
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/coreutils/hotfix.patch.musl
3 # Copyright (C) 2021 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- coreutils-9.0/src/ls.c.vanilla      2021-10-09 23:18:16.244303461 +0200
15 +++ coreutils-9.0/src/ls.c      2021-10-09 23:20:06.139303416 +0200
16 @@ -2273,7 +2273,7 @@
17        if (linelen < 0)
18          {
19            /* Suppress bogus warning re comparing ws.ws_col to big integer.  */
20 -# if __GNUC_PREREQ (4, 6)
21 +# if 0
22  #  pragma GCC diagnostic push
23  #  pragma GCC diagnostic ignored "-Wtype-limits"
24  # endif
25 @@ -2282,7 +2282,7 @@
26                && 0 <= ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws)
27                && 0 < ws.ws_col)
28              linelen = ws.ws_col <= MIN (PTRDIFF_MAX, SIZE_MAX) ? ws.ws_col : 0;
29 -# if __GNUC_PREREQ (4, 6)
30 +# if 0
31  #  pragma GCC diagnostic pop
32  # endif
33          }