diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-16 20:21:40 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-16 20:21:40 +0000 |
commit | 066220e7145c94fd6751c0631374ef3b34dc983c (patch) | |
tree | 377d6e22911eb183f487f272acd55e7743663ec9 /src | |
parent | fd70a41ac6df0c3c19458cd9fb9ebcc5c54b8c84 (diff) | |
download | xine-lib-066220e7145c94fd6751c0631374ef3b34dc983c.tar.gz xine-lib-066220e7145c94fd6751c0631374ef3b34dc983c.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/libreal/real_common.c | 7 | ||||
-rw-r--r-- | src/libreal/real_common.h | 12 |
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 |