When trying to compile with new GCC versions, one gets an error that _POSIX_C_SOURCE has already been defined[1]. The attached patch should help resolve this. Savannah web interface is unreachable for me currently, so sending the patch by email only.
diff --git a/src/blowfish/blowfish.c b/src/blowfish/blowfish.c index 24576d220..a207b0505 100644 --- a/src/blowfish/blowfish.c +++ b/src/blowfish/blowfish.c @@ -24,7 +24,9 @@ * SUCH DAMAGE. */ +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif #include <assert.h> #include <stdint.h> diff --git a/src/microcode/chacha12.c b/src/microcode/chacha12.c index 056199396..3d51494b1 100644 --- a/src/microcode/chacha12.c +++ b/src/microcode/chacha12.c @@ -27,7 +27,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif #include <stdint.h> diff --git a/src/microcode/chacha20.c b/src/microcode/chacha20.c index 68c9f1d19..69ac1a0e6 100644 --- a/src/microcode/chacha20.c +++ b/src/microcode/chacha20.c @@ -27,7 +27,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif #include <stdint.h> diff --git a/src/microcode/chacha8.c b/src/microcode/chacha8.c index 90d04b9e5..cb17fc0b2 100644 --- a/src/microcode/chacha8.c +++ b/src/microcode/chacha8.c @@ -27,7 +27,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif #include <stdint.h> diff --git a/src/microcode/keccak.c b/src/microcode/keccak.c index feeb0f829..57b58ebd4 100644 --- a/src/microcode/keccak.c +++ b/src/microcode/keccak.c @@ -24,7 +24,9 @@ * SUCH DAMAGE. */ +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif #include <stdint.h> diff --git a/src/microcode/md5.c b/src/microcode/md5.c index c93d6697f..0450984ba 100644 --- a/src/microcode/md5.c +++ b/src/microcode/md5.c @@ -24,7 +24,9 @@ * SUCH DAMAGE. */ +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif #include <assert.h> #include <stdint.h>
1) https://aur.archlinux.org/packages/mit-scheme
