[plt-scheme] windows drscheme + cygwin Xlib mzscheme extension

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Jun 7 13:59:21 EDT 2003

At Fri, 6 Jun 2003 10:33:37 -0700 (PDT), Ron Stanonik wrote:
> This works in linux and Mac OSX (XDarwin).  Now we'd like to run in
> the Windows world.  We compiled the Xlib mzscheme extension using
> CygWin+XFree86.  We then load-extension it into the Windows version
> of DrScheme.

I think the problem is here:

> static void
> wakeup(Scheme_Object *data, void *fds)
> {
> 	void *fdset[3];
> 
> 	if (debug) fprintf(stderr, "wakeup fd = %d\n", fd);
> 	fdset[0] = MZ_GET_FDSET(fds, 0);
> 	fdset[0] = MZ_GET_FDSET(fds, 1);
> 	fdset[0] = MZ_GET_FDSET(fds, 2);
> 	MZ_FD_SET(fd, (fd_set *)fdset[0]);
> }

"fd" is a Cygwin file descriptor for the X socket. MZ_FD_SET works on
Windows sockets. Probably they're not the same thing.

Is it possible to convert the Cygwin fd to a Windows socket?

Matthew



Posted on the users mailing list.