Commit 350d8762 authored by Niels Möller's avatar Niels Möller

Fix compilation with gcc -std=c89

parent f5a3a224
2018-12-26 Niels Möller <nisse@lysator.liu.se> 2018-12-26 Niels Möller <nisse@lysator.liu.se>
* tools/nettle-pbkdf2.c: Add #define _GNU_SOURCE, needed for
strdup with gcc -std=c89.
* testsuite/ed25519-test.c: Add #define _GNU_SOURCE, needed for
getline with gcc -std=c89.
* rsa-sign-tr.c (sec_equal): Fix accidental use of C99 for loop. * rsa-sign-tr.c (sec_equal): Fix accidental use of C99 for loop.
Reported by Andreas Gustafsson. Reported by Andreas Gustafsson.
* testsuite/rsa-sec-decrypt-test.c (test_main): Likewise. * testsuite/rsa-sec-decrypt-test.c (test_main): Likewise.
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
not, see http://www.gnu.org/licenses/. not, see http://www.gnu.org/licenses/.
*/ */
#define _GNU_SOURCE
#include "testutils.h" #include "testutils.h"
#include <errno.h> #include <errno.h>
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
not, see http://www.gnu.org/licenses/. not, see http://www.gnu.org/licenses/.
*/ */
#define _GNU_SOURCE
#if HAVE_CONFIG_H #if HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment