summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libreal/real_common.c7
-rw-r--r--src/libreal/real_common.h12
2 files changed, 17 insertions, 2 deletions
diff --git a/src/libreal/real_common.c b/src/libreal/real_common.c
index 9df428106..c4afcbeea 100644
--- a/src/libreal/real_common.c
+++ b/src/libreal/real_common.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: real_common.c,v 1.1 2007/03/16 20:02:33 dgp85 Exp $
+ * $Id: real_common.c,v 1.2 2007/03/16 20:21:40 dgp85 Exp $
*
* Common function for the thin layer to use Real binary-only codecs in xine
*/
@@ -55,3 +55,8 @@ void __pure_virtual(void) {
}
#endif
+
+#ifdef __FreeBSD__ /* TODO: alias them if at all possible */
+void ___brk_addr(void) { exit(0); }
+void __ctype_b(void) { exit(0); }
+#endif
diff --git a/src/libreal/real_common.h b/src/libreal/real_common.h
index 83336a809..2d4c1dee0 100644
--- a/src/libreal/real_common.h
+++ b/src/libreal/real_common.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: real_common.h,v 1.1 2007/03/16 20:02:33 dgp85 Exp $
+ * $Id: real_common.h,v 1.2 2007/03/16 20:21:40 dgp85 Exp $
*
* Common function for the thin layer to use Real binary-only codecs in xine
*/
@@ -44,4 +44,14 @@ void __pure_virtual(void) EXPORTED;
#endif
+#ifdef __FreeBSD__
+ #ifdef SUPPORT_ATTRIBUTE_ALIAS
+char **__environ __attribute__((weak, alias("environ")));
+FILE *stderr __attribute__((weak, alias("__stderrp")));
+
+ #endif
+void ___brk_addr(void) EXPORTED;
+void __ctype_b(void) EXPORTED;
+#endif
+
#endif