diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-03 06:53:25 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-03 06:53:25 +0400 |
commit | c90e420d91e48a2d1e300042b3c02ab3f9690835 (patch) | |
tree | 5311093e3f1b32cae0d4c1e1c62b2d48ac20778d /winsup/cygwin/gmon.c | |
parent | be61cf4d0ce1a34c555b96f42809c3f504bafeab (diff) |
* cygrun.c (main): Fix compiler warning.
* gmon.c (_mcleanup): Ditto.
* profil.c (profile_off): Ditto.
* net.cc (find_winsock_errno): New function.
(__set_winsock_errno): Use find_winsock_errno.
(cygwin_setsockopt): Detect SO_ERROR for debugging.
(cygwin_getsockopt): Ditto. Translate error when getsockopt returns SO_ERROR.
* winsup.h: regparmize __set_winsock_errno.
* include/sys/strace.h: Document that strace functions can't use regparm.
Diffstat (limited to 'winsup/cygwin/gmon.c')
-rw-r--r-- | winsup/cygwin/gmon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/gmon.c b/winsup/cygwin/gmon.c index 6187a7c8f..e07d62221 100644 --- a/winsup/cygwin/gmon.c +++ b/winsup/cygwin/gmon.c @@ -200,7 +200,10 @@ _mcleanup() proffile = "gmon.out"; } #else - proffile = "gmon.out"; + { + char gmon_out[] = "gmon.out"; + proffile = gmon_out; + } #endif fd = open(proffile , O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, 0666); |