select$DARWIN_EXTSN$NOCANCEL vs select$DARWIN_EXTSN
select$DARWIN_EXTSN$NOCANCEL vs select$DARWIN_EXTSN
- Subject: select$DARWIN_EXTSN$NOCANCEL vs select$DARWIN_EXTSN
- From: Mike Richmond <email@hidden>
- Date: Mon, 03 Oct 2011 16:43:06 +0100
I'm trying to use pthread_cancel() to interrupt a thread which is
calling select(). This works fine if I build on 10.4 with the 10.4u
SDK and I define _POSIX_C_SOURCE. It also works fine if I build on
10.6 with either the 10.5 or 10.6 SDKs.
What I can't get to work though is building on 10.6 with the 10.4u
SDK. In that case I note that select$DARWIN_EXTSN$NOCANCEL() is
being called, whereas I think I want select$DARWIN_EXTSN() to be
called (as I see when using the 10.5 and 10.6 SDKs).
I've read <http://developer.apple.com/library/mac/#releasenotes/
Darwin/SymbolVariantsRelNotes/index.html>, but none of the defines it
mentions helps - I always end up calling select$DARWIN_EXTSN$NOCANCEL
(). What do I need to define to get a non-$NOCANCEL variant of select
() instead?
I'm using GCC 4.0, and build with -isysroot /Developer/SDK/
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -Wl,-syslibroot,/Developer/
SDK/MacOSX10.4u.sdk.
Thanks,
Mike Richmond
Global Graphics Software Ltd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden