ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/package/libs/nettle/patches/100-portability.patch b/package/libs/nettle/patches/100-portability.patch
new file mode 100644
index 0000000..a44baa2
--- /dev/null
+++ b/package/libs/nettle/patches/100-portability.patch
@@ -0,0 +1,34 @@
+--- a/configure
++++ b/configure
+@@ -4719,6 +4719,7 @@ $as_echo_n "checking build system compil
+ # remove anything that might look like compiler output to our "||" expression
+ rm -f conftest* a.out b.out a.exe a_out.exe
+ cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {
+@@ -4751,6 +4752,7 @@ $as_echo_n "checking build system compil
+ # remove anything that might look like compiler output to our "||" expression
+ rm -f conftest* a.out b.out a.exe a_out.exe
+ cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {
+@@ -4787,6 +4789,7 @@ $as_echo_n "checking build system compil
+ # remove anything that might look like compiler output to our "||" expression
+ rm -f conftest* a.out b.out a.exe a_out.exe
+ cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {
+@@ -4837,6 +4840,7 @@ else
+ gmp_cv_prog_exeext_for_build="$EXEEXT"
+ else
+ cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {