Date: Thu, 26 Oct 2000 18:25:43 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Flemming Froekjaer <froekjaerf@netscape.net> Cc: freebsd-questions@freebsd.org Subject: Re: What's the deal with _THREAD_SAFE? Message-ID: <20001026182543.A29079@dan.emsphone.com> In-Reply-To: <34FF0427.420B3885.0F2A144B@netscape.net>; from "Flemming Froekjaer" on Thu Oct 26 19:19:22 GMT 2000 References: <0E205B64.7BDA2B7E.0F2A144B@netscape.net> <20001026164517.A11415@dan.emsphone.com> <34FF0427.420B3885.0F2A144B@netscape.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 26), Flemming Froekjaer said: > Dan Nelson <dnelson@emsphone.com> wrote: > > In the last episode (Oct 26), Flemming Froekjaer said: > > > I'm trying to use the functions in <pthreads.h>, but after much > > > aggavation I've found that I can't unless _THREAD_SAFE is defined. > > > Now, do I have to define it in my own header file, or do I include > > > some other header file where it's defined, and if so, which one? > > > > Compiling with the -pthread gcc switch should be sufficient. > > I couldn't find the -pthread option in the GCC Command Options manual, but > tried it anyway. Didn't do the trick, unfortunately... It's in the pthread manpage. Actually, I should have read your first message more carefully. First, it's <pthread.h>, not <pthreads.h>, and second, the only reference to _THREAD_SAFE is in stdio.h, where it doesn't add any new function prototypes. What version of FreeBSD is this? -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001026182543.A29079>