From c90e420d91e48a2d1e300042b3c02ab3f9690835 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 3 Apr 2001 02:53:25 +0000 Subject: * 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. --- winsup/cygwin/cygrun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/cygrun.c') diff --git a/winsup/cygwin/cygrun.c b/winsup/cygwin/cygrun.c index 8aa3e30a1..3086d7594 100644 --- a/winsup/cygwin/cygrun.c +++ b/winsup/cygwin/cygrun.c @@ -15,6 +15,7 @@ details. */ #include #include +#include int main(int argc, char **argv) @@ -29,7 +30,7 @@ main(int argc, char **argv) exit (0); } - setenv("CYGWIN_TESTING", "1"); + putenv("CYGWIN_TESTING=1"); SetEnvironmentVariable("CYGWIN_TESTING", "1"); memset(&sa, 0, sizeof(sa)); -- cgit v1.2.3