changeset 572:5a06c3552026 libavcodec

BeOS patches by "shatty" <shatty at myrealbox.com> 1. errno's are negative on beos, so negating them gives positive values. 2. the -shared flag is -nostart on beos. 3. building the shared lib on beos requires -fomit-frame-pointer 4. beos doesn't have oss support
author michaelni
date Fri, 19 Jul 2002 22:23:40 +0000
parents 0a9259126188
children b0f52172f4c5
files Makefile common.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Jul 18 20:27:09 2002 +0000
+++ b/Makefile	Fri Jul 19 22:23:40 2002 +0000
@@ -85,7 +85,7 @@
 	$(AR) rc $@ $(OBJS)
 
 $(SLIB): $(OBJS)
-	$(CC) -shared -o $@ $(OBJS) $(EXTRALIBS)
+	$(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
 
 dsputil.o: dsputil.c dsputil.h
 
--- a/common.h	Thu Jul 18 20:27:09 2002 +0000
+++ b/common.h	Fri Jul 19 22:23:40 2002 +0000
@@ -22,7 +22,11 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#ifndef __BEOS__
 #include <errno.h>
+#else
+#include "berrno.h"
+#endif
 #include <math.h>
 
 #ifndef ENODATA