1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/libgpg-error/hotfix.patch
5 # Copyright (C) 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- libgpg-error-1.42/src/gen-lock-obj.sh 2021-03-04 11:05:29.000000000 +0100
18 +++ libgpg-error-1.41/src/gen-lock-obj.sh 2020-05-29 14:27:14.000000000 +0200
21 # gen-lock-obj.sh - Build tool to construct the lock object.
23 -# Copyright (C) 2020, 2021 g10 Code GmbH
24 +# Copyright (C) 2020 g10 Code GmbH
26 # This file is part of libgpg-error.
29 # AWK=gawk ./gen-lock-obj.sh
32 -if test -n `echo -n`; then
40 -if test "$1" = --disable-threads; then
42 -## lock-obj-pub.$host.h - NO LOCK SUPPORT
43 -## File created by gen-lock-obj.sh - DO NOT EDIT
44 -## To be included by mkheader into gpg-error.h
46 -/* Dummy object - no locking available. */
52 -#define GPGRT_LOCK_INITIALIZER {-1}
55 AWK_VERSION_OUTPUT=$($AWK 'BEGIN { print PROCINFO["version"] }')
56 if test -n "$AWK_VERSION_OUTPUT"; then
57 # It's GNU awk, which supports PROCINFO.
59 # USE_LONG_DOUBLE_FOR_ALIGNMENT
62 -echo ${ECHO_N} "#define GPGRT_LOCK_INITIALIZER {$LOCK_ABI_VERSION,{{${ECHO_C}"
63 +echo -n "#define GPGRT_LOCK_INITIALIZER {$LOCK_ABI_VERSION,{{"
66 while test "$i" -lt $ac_mtx_size; do
67 if test "$i" -ne 0 -a "$(( $i % 8 ))" -eq 0; then
69 - echo ${ECHO_N} " ${ECHO_C}"
72 - echo ${ECHO_N} "0${ECHO_C}"
74 if test "$i" -lt $(($ac_mtx_size - 1)); then
75 - echo ${ECHO_N} ",${ECHO_C}"