Ver Fonte

Oops... temporarily support the old stdio code.

Manuel Novoa III há 22 anos atrás
pai
commit
95a70af5e7
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      libc/stdio/popen.c

+ 5 - 0
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;