From 18d3e9c571b260b7c393c9eb63dc0c3054c107b5 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Tue, 5 Sep 2000 01:36:23 +0000 Subject: Make user interaction a runtime switch instead of a compiletime option. PR: 20956 Submitted by: Andre Albsmeier --- multimedia/mplex/files/patch-af | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 multimedia/mplex/files/patch-af (limited to 'multimedia/mplex/files/patch-af') diff --git a/multimedia/mplex/files/patch-af b/multimedia/mplex/files/patch-af new file mode 100644 index 000000000000..12d99a0ca25d --- /dev/null +++ b/multimedia/mplex/files/patch-af @@ -0,0 +1,34 @@ +--- main.c.orig Wed Apr 5 03:51:53 1995 ++++ main.c Mon Sep 4 18:17:45 2000 +@@ -59,6 +59,7 @@ + *************************************************************************/ + + #include "main.h" ++#include + + /************************************************************************* + Main +@@ -75,6 +76,8 @@ + struct timeval tp_global_end; + #endif + ++int Interactive=0; ++ + int main (argc, argv) + + int argc; +@@ -93,6 +96,14 @@ + unsigned int which_streams=0; + double startup_delay=0; + ++ int tmp; ++ ++ if( getopt( argc, argv, "i" ) == 'i' ) ++ Interactive=1; ++ ++ optind -= 1; ++ argc -= optind; ++ argv += optind; + + intro (argc); + check_files (argc, argv, &audio_file, &video_file, &multi_file, -- cgit v1.2.3