summaryrefslogtreecommitdiff
path: root/src/libreal/real_common.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-17 06:11:30 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-17 06:11:30 +0000
commit75fd3688f52f3d9574cf7204fd74c9eb9f2a639b (patch)
tree08ba62ec560e17de7355b18c1b1b79090b4062b3 /src/libreal/real_common.c
parent34b5a8c6d29bc613e7c00ba56c2eccdad182af27 (diff)
downloadxine-lib-75fd3688f52f3d9574cf7204fd74c9eb9f2a639b.tar.gz
xine-lib-75fd3688f52f3d9574cf7204fd74c9eb9f2a639b.tar.bz2
Instead of relying on FreeBSD being the only system not having __environ stderr ___brk_addr and __ctype_b, look for them during ./configure stage. Also check for alternatives, and check for compiler's weak aliasing support only if it's actually going to be used.
CVS patchset: 8696 CVS date: 2007/03/17 06:11:30
Diffstat (limited to 'src/libreal/real_common.c')
-rw-r--r--src/libreal/real_common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libreal/real_common.c b/src/libreal/real_common.c
index dbe528ee0..7110198db 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.10 2007/03/16 22:49:16 dgp85 Exp $
+ * $Id: real_common.c,v 1.11 2007/03/17 06:11:30 dgp85 Exp $
*
* Common function for the thin layer to use Real binary-only codecs in xine
*/
@@ -62,8 +62,11 @@ void __pure_virtual(void) {
#endif
-#ifdef __FreeBSD__ /* TODO: alias them if at all possible */
+#ifndef HAVE____BRK_ADDR
void ___brk_addr(void) { exit(0); }
+#endif
+
+#ifndef HAVE___CTYPE_B
void __ctype_b(void) { exit(0); }
#endif