From 95a70af5e7511d09d525487aa8f4cb417865ba7d Mon Sep 17 00:00:00 2001
From: Manuel Novoa III <mjn3@codepoet.org>
Date: Fri, 2 Jan 2004 09:20:33 +0000
Subject: Oops... temporarily support the old stdio code.

---
 libc/stdio/popen.c | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'libc')

diff --git a/libc/stdio/popen.c b/libc/stdio/popen.c
index ad9b84cf7..8ebaedfd6 100644
--- a/libc/stdio/popen.c
+++ b/libc/stdio/popen.c
@@ -54,6 +54,11 @@ static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
 # define VFORK_UNLOCK	UNLOCK
 #endif
 
+/* Temporarily support old stdio code. */
+#ifndef __MASK_READING
+#define __filedes		filedes
+#endif
+
 struct popen_list_item {
 	struct popen_list_item *next;
 	FILE *f;
-- 
cgit v1.2.3