diff options
Diffstat (limited to 'lang/nawk/files/missing95.c')
-rw-r--r-- | lang/nawk/files/missing95.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/nawk/files/missing95.c b/lang/nawk/files/missing95.c new file mode 100644 index 00000000000..93fe85c5e1e --- /dev/null +++ b/lang/nawk/files/missing95.c @@ -0,0 +1,14 @@ +/* $NetBSD: missing95.c,v 1.1 2006/07/14 14:23:06 jlam Exp $ */ + +/* popen and pclose are not part of win 95 and nt, + but it appears that _popen and _pclose "work". + if this won't load, use the return NULL statements. */ + +#include <stdio.h>
+FILE *popen(char *s, char *m) { + return _popen(s, m); /* return NULL; */ +}
+ +int pclose(FILE *f) { + return _pclose(f); /* return NULL; */ +}
|