mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
See: macports/macports-base@74b3130 Closes: https://trac.macports.org/ticket/61890
85 lines
2.1 KiB
Diff
85 lines
2.1 KiB
Diff
https://github.com/macports/macports-base/commit/aeda00dfd7aa26fa4b78ac30d76ea64cdf0a4408
|
|
|
|
diff --git a/configure b/configure
|
|
index be63b1795..154515ccc 100755
|
|
--- configure
|
|
+++ configure
|
|
@@ -3214,6 +3214,7 @@ cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <ctype.h>
|
|
+#include <stdlib.h>
|
|
#if ((' ' & 0x0FF) == 0x020)
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
@@ -10766,6 +10767,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/times.h>
|
|
+#include <unistd.h>
|
|
main() {
|
|
struct tms cpu;
|
|
times(&cpu);
|
|
diff --git a/configure.in b/configure.in
|
|
index 173ec261f..d1be5550e 100755
|
|
--- configure.in
|
|
+++ configure.in
|
|
@@ -194,6 +194,7 @@ WIFEXITED(x); /* Generates compiler error if WIFEXITED uses an int. */
|
|
AC_TRY_RUN([
|
|
#include <sys/types.h>
|
|
#include <sys/times.h>
|
|
+#include <unistd.h>
|
|
main() {
|
|
struct tms cpu;
|
|
times(&cpu);
|
|
diff --git a/tclconfig/tcl.m4 b/tclconfig/tcl.m4
|
|
index 18d71343f..6b6ab41e4 100644
|
|
--- tclconfig/tcl.m4
|
|
+++ tclconfig/tcl.m4
|
|
@@ -2441,6 +2441,7 @@ AC_DEFUN(TEA_BUGGY_STRTOD, [
|
|
if test "$tcl_strtod" = 1; then
|
|
AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[
|
|
AC_TRY_RUN([
|
|
+ #include <stdlib.h>
|
|
extern double strtod();
|
|
int main() {
|
|
char *infString="Inf", *nanString="NaN", *spaceString=" ";
|
|
--- configure.orig 2020-12-22 21:08:08.000000000 +1100
|
|
+++ configure 2020-12-22 21:14:04.000000000 +1100
|
|
@@ -10559,7 +10559,7 @@
|
|
{
|
|
extern long timezone;
|
|
timezone += 1;
|
|
- exit (0);
|
|
+ return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -10624,7 +10624,7 @@
|
|
{
|
|
extern time_t timezone;
|
|
timezone += 1;
|
|
- exit (0);
|
|
+ return (0);
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -10772,7 +10772,7 @@
|
|
struct tms cpu;
|
|
times(&cpu);
|
|
sleep(2);
|
|
- exit ((times(&cpu) > 0) ? 0 : 1);
|
|
+ return ((times(&cpu) > 0) ? 0 : 1);
|
|
}
|
|
|
|
_ACEOF
|
|
@@ -13012,7 +13012,7 @@
|
|
main ()
|
|
{
|
|
|
|
- if (catclose ((nl_catd) 0) == 0) exit (0);
|
|
+ if (catclose ((nl_catd) 0) == 0) return (0);
|
|
;
|
|
return 0;
|
|
}
|