summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 20:21:40 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 20:21:40 +0000
commit066220e7145c94fd6751c0631374ef3b34dc983c (patch)
tree377d6e22911eb183f487f272acd55e7743663ec9 /src
parentfd70a41ac6df0c3c19458cd9fb9ebcc5c54b8c84 (diff)
downloadxine-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.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