]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Prevent redefinition of `crypto_int32' error with gcc3.
authortobhe@openbsd.org <tobhe@openbsd.org>
Sun, 3 Jan 2021 18:05:21 +0000 (18:05 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 8 Jan 2021 02:45:46 +0000 (13:45 +1100)
Fixes compilation on luna88k.

Feedback millert@
Found by and ok aoyama@

OpenBSD-Commit-ID: f305ddfe575a26cc53431af3fde3f4aeebed9ba6

sntrup761.c
sntrup761.sh

index 5b2456ad2a8d94d3ab7dd6e0e3b9483e80ae7eff..c7ef95c7790e148d8a31d94ff155c754bb7adaca 100644 (file)
@@ -1,4 +1,4 @@
-/*  $OpenBSD: sntrup761.c,v 1.2 2020/12/30 14:13:28 tobhe Exp $ */
+/*  $OpenBSD: sntrup761.c,v 1.3 2021/01/03 18:05:21 tobhe Exp $ */
 
 /*
  * Public Domain, Authors:
@@ -160,7 +160,6 @@ typedef int16_t int16;
 #define int32_divmod_uint14 CRYPTO_NAMESPACE(int32_divmod_uint14)
 
 
-typedef int32_t int32;
 
 /*
 assuming 1 <= m < 16384:
index 5ddea77a05a04d7962ee95d7c63a98050c141b97..3ab303ab7c23385e41f0540d4898b4af939d2a64 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-#       $OpenBSD: sntrup761.sh,v 1.2 2020/12/30 14:13:28 tobhe Exp $
+#       $OpenBSD: sntrup761.sh,v 1.3 2021/01/03 18:05:21 tobhe Exp $
 #       Placed in the Public Domain.
 #
 AUTHOR="supercop-20201130/crypto_kem/sntrup761/ref/implementors"
@@ -60,6 +60,7 @@ for i in $FILES; do
           -v '#include' $i | \
           sed -e "s/crypto_kem_/crypto_kem_sntrup761_/g" \
                -e "s/^extern void /static void /" \
-               -e "s/^void /static void /"
+               -e "s/^void /static void /" \
+               -e "/^typedef int32_t int32;$/d"
        echo
 done