jak na kritickou sekci

Roman Nádhera roman at nadhera.name
Wed Jan 2 19:18:34 CET 2013


Dobry den,

chc pouzit fumkce critical_enter(void); a critical_exit(void);
Když vsak do zdrojaku vlozim
 #include <sys/param.h>
 #include <sys/systm.h>
Tak to pri prekladu vysype hromadu chyb.


In file included from hastor.c:15:
/usr/include/sys/systm.h:240: error: expected declaration specifiers or
 '...' before 'uintfptr_t'
/usr/include/sys/systm.h:246: error: expected declaration specifiers or
'...' before 'uintfptr_t'
/usr/include/sys/systm.h:271: error: conflicting types for 'setenv'
/usr/include/stdlib.h:159: error: previous declaration of 'setenv' was here
In file included from /usr/include/sys/systm.h:286,
                 from hastor.c:15:


atd....

PC-BSD  9.0



More information about the Users-l mailing list