From dd76747b8e7892a8a17be9149c600561f518399a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 7 Oct 2002 20:06:16 +0000 Subject: * dtable.cc (unknown_file): New variable. (dtable::init_std_file_from_handle): Don't set binmode if we couldn't determine the actual file name on stdin/stdout/stderr. (handle_to_fn): Return unknown_file when can't determine filename. --- winsup/cygwin/resource.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/resource.cc') diff --git a/winsup/cygwin/resource.cc b/winsup/cygwin/resource.cc index 0db6cd5b8..01e065bb5 100644 --- a/winsup/cygwin/resource.cc +++ b/winsup/cygwin/resource.cc @@ -83,8 +83,7 @@ fill_rusage (struct rusage *r, HANDLE h) } } -extern "C" -int +extern "C" int getrusage (int intwho, struct rusage *rusage_in) { int res = 0; -- cgit v1.2.3