- Add an extra patch for amd64 that fixes runtime after recent fcntl changes
Submitted by: jkoshy
This commit is contained in:
parent
f9a065f6cc
commit
6389305e33
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218766
2 changed files with 37 additions and 0 deletions
|
@ -52,8 +52,10 @@ PLIST_SUB+= AMD64="@comment "
|
|||
.elif ${ARCH} == "amd64"
|
||||
MAINTAINER= bzeeb+freebsdports@zabbadoz.net
|
||||
PORTVERSION= 1.1
|
||||
PORTREVISION= 2
|
||||
AMD64_PATCHES= p-amd64-common p-amd64-gcc p-amd64-gcc-321-322 p-amd64-gcchacks \
|
||||
p-amd64-gccstatic p-amd64-m3 p-amd64-m3-except-sort p-amd64-newfiles
|
||||
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-fcntl
|
||||
TARGET= FBSD_AMD64
|
||||
WORDSIZE= 64
|
||||
ENDIANESS= le
|
||||
|
|
35
lang/ezm3/files/extra-patch-fcntl
Normal file
35
lang/ezm3/files/extra-patch-fcntl
Normal file
|
@ -0,0 +1,35 @@
|
|||
--- libs/m3core/src/runtime/FBSD_AMD64/RTHeapDepC.c.orig 2008-08-18 16:13:42.000000000 +0530
|
||||
+++ libs/m3core/src/runtime/FBSD_AMD64/RTHeapDepC.c 2008-08-18 16:14:20.000000000 +0530
|
||||
@@ -1,2 +1,13 @@
|
||||
+#include <fcntl.h>
|
||||
+
|
||||
void (*RTHeapRep_Fault)(char*);
|
||||
void (*RTCSRC_FinishVM)();
|
||||
+
|
||||
+/*
|
||||
+ * Translate between non-varargs and varargs calling conventions.
|
||||
+ */
|
||||
+int
|
||||
+ufcntl(int fd, int cmd, long arg)
|
||||
+{
|
||||
+ return (fcntl(fd, cmd, arg));
|
||||
+}
|
||||
--- libs/m3core/src/unix/freebsd-4.amd64/Unix.i3.orig 2008-08-18 16:13:42.000000000 +0530
|
||||
+++ libs/m3core/src/unix/freebsd-4.amd64/Unix.i3 2008-08-18 16:15:09.000000000 +0530
|
||||
@@ -147,6 +147,7 @@
|
||||
l_pid: pid_t := 0;
|
||||
l_type: short; (* see below *)
|
||||
l_whence: short;
|
||||
+ l_sysid: int := 0;
|
||||
END;
|
||||
(* ok *)
|
||||
|
||||
@@ -155,7 +156,7 @@
|
||||
F_WRLCK = 3; (* Write lock *)
|
||||
F_UNLCK = 2; (* Remove lock(s) *)
|
||||
|
||||
-<*EXTERNAL*> PROCEDURE fcntl (fd, request: int; arg: long): int;
|
||||
+<*EXTERNAL "ufcntl"*> PROCEDURE fcntl (fd, request: int; arg: long): int;
|
||||
(* ok *)
|
||||
|
||||
(*** flock - apply or remove an advisory lock on an open file ***)
|
Loading…
Reference in a new issue