summaryrefslogtreecommitdiff
path: root/src/input/input_stdin_fifo.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-05-07 02:25:00 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-05-07 02:25:00 +0000
commit2866aa5a2be3ef68979648fe550a208bd65416ae (patch)
tree0ac087d29bc3b05e039846b07750c7dab55e1e76 /src/input/input_stdin_fifo.c
parent572a39455ef8eeef47bf640488ed963ae55925e0 (diff)
downloadxine-lib-2866aa5a2be3ef68979648fe550a208bd65416ae.tar.gz
xine-lib-2866aa5a2be3ef68979648fe550a208bd65416ae.tar.bz2
Check and comply with devfs (i hope).
CVS patchset: 68 CVS date: 2001/05/07 02:25:00
Diffstat (limited to 'src/input/input_stdin_fifo.c')
-rw-r--r--src/input/input_stdin_fifo.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/input/input_stdin_fifo.c b/src/input/input_stdin_fifo.c
index ebe737cc7..f292c065a 100644
--- a/src/input/input_stdin_fifo.c
+++ b/src/input/input_stdin_fifo.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: input_stdin_fifo.c,v 1.4 2001/05/07 01:31:44 f1rmb Exp $
+ * $Id: input_stdin_fifo.c,v 1.5 2001/05/07 02:25:00 f1rmb Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -32,6 +32,10 @@
#include <sys/stat.h>
#include <errno.h>
+#if defined(__linux__)
+#include <linux/config.h> /* Check for DEVFS */
+#endif
+
#include "xine_internal.h"
#include "monitor.h"
#include "input_plugin.h"
@@ -60,7 +64,11 @@ static int stdin_plugin_open(input_plugin_t *this_gen, char *mrl) {
if(!strncasecmp(mrl, "stdin:", 6)
|| !strncmp(mrl, "-", 1)) {
+#ifdef CONFIG_DEVFS_FS
+ filename = "/dev/vc/stdin";
+#else
filename = "/dev/stdin";
+#endif
}
else if(!strncasecmp(mrl, "fifo:", 5)) {