From 066220e7145c94fd6751c0631374ef3b34dc983c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 16 Mar 2007 20:21:40 +0000 Subject: For FreeBSD support, alias the __environ and stderr symbols, unavailable there, to their equivalent symbols. This could be improved by adding a configure-time check for this. CVS patchset: 8681 CVS date: 2007/03/16 20:21:40 --- src/libreal/real_common.c | 7 ++++++- src/libreal/real_common.h | 12 +++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3