diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-04-10 12:32:20 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-04-12 17:34:23 +0700 |
commit | 638f131d47e1e74211567f85cba240f36de06c23 (patch) | |
tree | badc1c93b9cfcfffd5a078b70569a3c56f316550 /academic/lpsolve/lpsolve-5.5.2.0.defines.patch | |
parent | ea83d28f913d9689959dea5ef7ba98938bbf6047 (diff) | |
download | slackbuilds-638f131d47e1e74211567f85cba240f36de06c23.tar.gz slackbuilds-638f131d47e1e74211567f85cba240f36de06c23.tar.xz |
academic/lpsolve: Patched to fix build failure.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/lpsolve/lpsolve-5.5.2.0.defines.patch')
-rw-r--r-- | academic/lpsolve/lpsolve-5.5.2.0.defines.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/academic/lpsolve/lpsolve-5.5.2.0.defines.patch b/academic/lpsolve/lpsolve-5.5.2.0.defines.patch new file mode 100644 index 0000000000..a325c13703 --- /dev/null +++ b/academic/lpsolve/lpsolve-5.5.2.0.defines.patch @@ -0,0 +1,22 @@ +--- lp_solve_5.5/lpsolve55/ccc ++++ lp_solve_5.5/lpsolve55/ccc +@@ -18,7 +18,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN= +--- lp_solve_5.5/lp_solve/ccc ++++ lp_solve_5.5/lp_solve/ccc +@@ -20,7 +20,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN= |