head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2008.08.18.13.36.19;	author pav;	state Exp;
branches;
next	;


desc
@@


1.1
log
@- Add an extra patch for amd64 that fixes runtime after recent fcntl changes

Submitted by:	jkoshy
@
text
@--- 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 ***)
@
