You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
fc9eb98fe8
Co-authored-by: Joshua Root <jmr@macports.org>
85 lines
2.1 KiB
Diff
85 lines
2.1 KiB
Diff
--- configure.orig 2012-08-13 17:08:58.000000000 +0300
|
|
+++ configure 2012-08-13 17:11:07.000000000 +0300
|
|
@@ -3145,6 +3145,8 @@
|
|
;;
|
|
esac
|
|
|
|
+ FRAMEWORKINSTALLAPPSPREFIX="@@APPLICATIONS_DIR@@"
|
|
+
|
|
prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
|
|
|
|
# Add files for Mac specific code to the list of output
|
|
@@ -7013,7 +7013,7 @@
|
|
sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
|
|
libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
|
|
bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h endian.h \
|
|
-sys/endian.h
|
|
+sys/random.h sys/endian.h
|
|
do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
--- configure.orig 2021-01-02 20:14:31.000000000 +1100
|
|
+++ configure 2021-01-02 20:29:17.000000000 +1100
|
|
@@ -10037,10 +10037,10 @@
|
|
main() {
|
|
pthread_attr_t attr;
|
|
pthread_t id;
|
|
- if (pthread_attr_init(&attr)) exit(-1);
|
|
- if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
|
|
- if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
|
|
- exit(0);
|
|
+ if (pthread_attr_init(&attr)) return (-1);
|
|
+ if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
|
|
+ if (pthread_create(&id, &attr, foo, NULL)) return (-1);
|
|
+ return (0);
|
|
}
|
|
_ACEOF
|
|
if ac_fn_c_try_run "$LINENO"; then :
|
|
@@ -13733,7 +13733,7 @@
|
|
int main()
|
|
{
|
|
/* Success: exit code 0 */
|
|
- exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
|
|
+ return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
|
|
}
|
|
|
|
_ACEOF
|
|
@@ -14051,7 +14051,7 @@
|
|
|
|
int main()
|
|
{
|
|
- exit(((-1)>>3 == -1) ? 0 : 1);
|
|
+ return (((-1)>>3 == -1) ? 0 : 1);
|
|
}
|
|
|
|
_ACEOF
|
|
@@ -14434,13 +14434,16 @@
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
+#if HAVE_UNISTD_H
|
|
+#include <unistd.h>
|
|
+#endif
|
|
|
|
int main()
|
|
{
|
|
int val1 = nice(1);
|
|
if (val1 != -1 && val1 == nice(2))
|
|
- exit(0);
|
|
- exit(1);
|
|
+ return (0);
|
|
+ return (1);
|
|
}
|
|
|
|
_ACEOF
|
|
@@ -14476,6 +14479,9 @@
|
|
/* end confdefs.h. */
|
|
|
|
#include <poll.h>
|
|
+#if HAVE_UNISTD_H
|
|
+#include <unistd.h>
|
|
+#endif
|
|
|
|
int main()
|
|
{
|