aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kostylev <michael.kostylev@gmail.com>2007-12-24 12:49:27 +0000
committerDiego Biurrun <diego@biurrun.de>2007-12-24 12:49:27 +0000
commit4f365f37b578490f5a4df87847f5b78bec37a15b (patch)
tree69edbb8003fa76176ab5f0d6a6ace21135c6242c
parent64bb7bd519403317428ac3aa29ccdd81294b78ba (diff)
downloadffmpeg-4f365f37b578490f5a4df87847f5b78bec37a15b.tar.gz
djgpp port, first part
patch by Michael Kostylev, mik niipt ru Originally committed as revision 11313 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure7
-rw-r--r--libavformat/os_support.h2
-rw-r--r--libavutil/internal.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index 0d24b209c1..0a53633d6b 100755
--- a/configure
+++ b/configure
@@ -1218,6 +1218,13 @@ case $targetos in
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
SHFLAGS='-shared -Wl,--enable-auto-image-base'
;;
+ *-dos|freedos|opendos)
+ enable memalign_hack
+ disable ffplay ffserver vhook
+ disable $INDEV_LIST $OUTDEV_LIST
+ network_extralibs="-lsocket"
+ EXESUF=".exe"
+ ;;
linux)
LDLATEFLAGS="-Wl,--as-needed $LDLATEFLAGS"
enable dv1394
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 77cba1fe4b..16c198eb4f 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -27,7 +27,7 @@
* miscellaneous OS support macros and functions.
*/
-#if defined(__BEOS__) || defined(__INNOTEK_LIBC__)
+#if defined(__BEOS__) || defined(__INNOTEK_LIBC__) || defined(__DJGPP__)
typedef int socklen_t;
#endif
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 16f13c4d50..b9717e7bc9 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -118,7 +118,7 @@
#endif
// Use rip-relative addressing if compiling PIC code on x86-64.
-#if defined(__MINGW32__) || defined(__CYGWIN__) || \
+#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \
defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__))
# if defined(ARCH_X86_64) && defined(PIC)
# define MANGLE(a) "_" #a"(%%rip)"