diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-07-19 22:23:40 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-07-19 22:23:40 +0000 |
commit | e1707f52d5a431bd645eb6026801e1ddaf9c79c5 (patch) | |
tree | 811d91e85319d3e234906ed0c8a4fd0ab3d89436 /libavcodec | |
parent | eddbd7e5a09a11fab04f55222f1efa14426f49fe (diff) | |
download | ffmpeg-e1707f52d5a431bd645eb6026801e1ddaf9c79c5.tar.gz |
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
Originally committed as revision 779 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/Makefile | 2 | ||||
-rw-r--r-- | libavcodec/common.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 6d54abb953..989381d882 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -85,7 +85,7 @@ $(LIB): $(OBJS) $(AR) rc $@ $(OBJS) $(SLIB): $(OBJS) - $(CC) -shared -o $@ $(OBJS) $(EXTRALIBS) + $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) dsputil.o: dsputil.c dsputil.h diff --git a/libavcodec/common.h b/libavcodec/common.h index d9e46cabd3..e25e26651c 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -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 |