summaryrefslogtreecommitdiff
path: root/sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c')
-rw-r--r--sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c b/sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c
new file mode 100644
index 000000000000..beac9744a3fb
--- /dev/null
+++ b/sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c
@@ -0,0 +1,45 @@
+###########################################################################
+# This patch was contributed by Dimitry Andric.
+###########################################################################
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License"). You may not use this file except in compliance
+# with the License.
+#
+# See the file CDDL.Schily.txt in this distribution for details.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file CDDL.Schily.txt from this distribution.
+###########################################################################
+# The file CDDL.Schily.txt can be found in the original cdrtools tarball,
+# which is mirrored at ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/.
+###########################################################################
+
+--- scsilib/libschily/getfp.c.orig 2003-07-12 23:10:47 UTC
++++ scsilib/libschily/getfp.c
+@@ -23,6 +23,7 @@
+ #include <mconfig.h>
+ #include <standard.h>
+ #include <schily.h>
++#include <sys/cdefs.h>
+
+ #ifndef IS_AVOFFSET
+ /*
+@@ -56,7 +57,7 @@
+
+ EXPORT void **___fpoff __PR((char *cp));
+
+-EXPORT void **
++EXPORT __noinline void **
+ getfp()
+ {
+ long **dummy[1];
+@@ -73,7 +74,7 @@ getfp()
+ * We need this function to fool GCCs check for returning addresses
+ * from outside the functions local address space.
+ */
+-EXPORT void **
++EXPORT __noinline void **
+ ___fpoff(cp)
+ char *cp;
+ {