Re: [q-lang-users] OpenBSD, threading
Brought to you by:
agraef
From: <Dr....@t-...> - 2004-02-06 06:25:33
|
Julian Fondren wrote: >>That's *really* strange. Could you please check the >>generated config.h (in the toplevel directory of the >>sources), to see if it defines HAVE_UNISTD_H? > > It does. With more investigation, the compilation > only falls apart when the '#include <unistd.h>' comes > *after* the '#define _XOPEN_SOURCE 500' in > modules/clib/clib.c Well, the _XOPEN_SOURCE is *supposed* to come first, to get some stuff which isn't available in basic POSIX. If you send me a log of the compile errors then maybe I can figure out what's going on there. >>def S = server 5001 >>def C = socket AF_INET SOCK_STREAM 0 >>connect C ("localhost",5001) > > > Huh, this seems to work with my current version. Well, I think it's a local setup problem. Right now I'm upgrading to SuSE 9.0 on this box, I'll see whether that fixes it. I know that I did test accept/listen/connect once, so it ought to work over here, too. >>Can you try whether this works for you? > > It did =) I ended up with a more nicely formatted > version of the following: > [snip] Congrats. :) How about adding some comments to this example and submit it for inclusion in the next Q release? ;-) Albert -- Dr. Albert Gr"af Email: Dr....@t-..., ag...@mu... WWW: http://www.musikwissenschaft.uni-mainz.de/~ag |