[fpc-devel] how to get same pthreads code to compile between Linux and FreeBSD
Graeme Geldenhuys
graeme at geldenhuys.co.uk
Sun Feb 3 19:40:36 CET 2013
On 2013-02-03 18:10, Sven Barth wrote:
>
> I personally still think there is a bug, because the compiler should (in
> my opinion) not consider "sem_init(@sem)" a valid usage of "sem_init(var
> sem: sem_t)"...
+1
> I you look at the POSIX definition at
> http://pubs.opengroup.org/onlinepubs/007904975/basedefs/semaphore.h.html
> you'll see that they don't specify any specific fields so sem_t should
After reading Marco's reply I now understand. I didn't know this before.
> Did at least the solution help you? AFAIK it should work for FreeBSD as
> well as Linux (and maybe the other *nix systems...)
[After my reply to Marco, I tried your solution]
Yes, that did work - thanks. I have never seen those {$....} you
mentioned, but will read the FPC docs now to find out more.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
More information about the fpc-devel
mailing list