diff options
Diffstat (limited to 'dev-lang/ghc/files')
-rw-r--r-- | dev-lang/ghc/files/ghc-8.10.6-aclocal.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-lang/ghc/files/ghc-8.10.6-aclocal.patch b/dev-lang/ghc/files/ghc-8.10.6-aclocal.patch new file mode 100644 index 000000000000..8bd3ce58d072 --- /dev/null +++ b/dev-lang/ghc/files/ghc-8.10.6-aclocal.patch @@ -0,0 +1,26 @@ +diff --git a/aclocal.m4 b/aclocal.m4 +index 47d69c5..212ebc6 100644 +--- a/aclocal.m4 ++++ b/aclocal.m4 +@@ -966,17 +966,15 @@ struct nlist xYzzY1[] = {{"xYzzY1", 0},{0}}; + struct nlist xYzzY2[] = {{"_xYzzY2", 0},{0}}; + #endif + +-int main(argc, argv) +-int argc; +-char **argv; ++int main(int argc, char **argv) + { + #if defined(HAVE_NLIST_H) + if(nlist(argv[0], xYzzY1) == 0 && xYzzY1[0].n_value != 0) +- exit(1); ++ return 1; + if(nlist(argv[0], xYzzY2) == 0 && xYzzY2[0].n_value != 0) +- exit(0); ++ return 0; + #endif +- exit(1); ++ return 1; + }]])],[fptools_cv_leading_underscore=yes],[fptools_cv_leading_underscore=no],[fptools_cv_leading_underscore=no]) + ;; + esac]); |