mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
Add python:env and shebangfix to USES. Use target-OPTION-{on,off} instead of if-statements. Add targets-recompile.customized file instead of echo commands. Switch to DISTVERSION. Pet portfmt. Changelogs: https://www.smlnj.org/dist/working/110.99.6.1/110.99.6.1-README.html https://www.smlnj.org/dist/working/110.99.6/110.99.6-README.html https://www.smlnj.org/dist/working/2024.1/2024.1-README.html https://www.smlnj.org/dist/working/110.99.5/110.99.5-README.html https://www.smlnj.org/dist/working/2023.1/2023.1-README.html https://www.smlnj.org/dist/working/110.99.4/110.99.4-README.html https://www.smlnj.org/dist/working/2022.1/2022.1-README.html https://www.smlnj.org/dist/working/110.99.3/110.99.3-README.html https://www.smlnj.org/dist/working/2021.1/2021.1-README.html https://www.smlnj.org/dist/working/110.99.2/110.99.2-README.html https://www.smlnj.org/dist/working/110.99.1/110.99.1-README.html https://www.smlnj.org/dist/working/110.99/110.99-README.html PR: 283301 Reported by: Alexey Vyskubov <alexey@ocaml.nl> Approved by: submitter is maintainer
26 lines
1.1 KiB
C
26 lines
1.1 KiB
C
--- base/runtime/include/ml-unixdep.h.orig 2024-10-25 16:47:18 UTC
|
|
+++ base/runtime/include/ml-unixdep.h
|
|
@@ -33,9 +33,10 @@
|
|
* HAS_UCONTEXT if signal handlers have a ucontext_t argument.
|
|
* HAS_STRERROR if the system provides the ISO C strerror function.
|
|
* INT_GIDLIST if the second argument to getgroups is int[].
|
|
+ * HAS_MKSTEMP if OS provides the POSIX mkstemp function.
|
|
* STAT_HAS_TIMESPEC if the time fields in the "struct stat" type have
|
|
* type "struct timespec".
|
|
- * HAS_NANOSLEEP if the system provides the nanosleep(2) function.
|
|
+ * HAS_NANOSLEEP if the system provides the nanosleep(2) function.
|
|
*
|
|
* Note that only one of the following sets of symbols should be defined:
|
|
* { HAS_MMAP, HAS_ANON_MMAP, HAS_VM_ALLOCATE }
|
|
@@ -208,8 +209,11 @@ extern char *sys_errlist[];
|
|
# define HAS_SELECT
|
|
# define HAS_UCONTEXT
|
|
# define HAS_STRERROR
|
|
+# define HAS_MKSTEMP
|
|
# define STAT_HAS_TIMESPEC
|
|
# define HAS_NANOSLEEP
|
|
+/* FreeBSD uses MAP_ANON for MAP_ANONYMOUS */
|
|
+# define MAP_ANONYMOUS MAP_ANON
|
|
|
|
#elif defined(OPSYS_NETBSD) /* version 3.x */
|
|
# define OS_NAME "BSD"
|