Приветы!
есть программа http://www.opennet.me/openforum/vsluhforumID9/1386.html#7
в FreeBSD 5.2.1 компилировалась нормально
в FreeBSD 5.4 6.0 пишет следующее
In file included from portuot.c:3:
/usr/include/machine/cpufunc.h:64: error: syntax error before "bsfl"
/usr/include/machine/cpufunc.h:64: error: syntax error before "mask"
/usr/include/machine/cpufunc.h: In function `bsfl':
/usr/include/machine/cpufunc.h:66: error: syntax error before "result"
/usr/include/machine/cpufunc.h:68: error: `result' undeclared (first use in this function)
/usr/include/machine/cpufunc.h:68: error: (Each undeclared identifier is reported only once
/usr/include/machine/cpufunc.h:68: error: for each function it appears in.)
/usr/include/machine/cpufunc.h:68: error: `mask' undeclared (first use in this function)
/usr/include/machine/cpufunc.h: At top level:
/usr/include/machine/cpufunc.h:73: error: syntax error before "bsrl"
/usr/include/machine/cpufunc.h:73: error: syntax error before "mask"
/usr/include/machine/cpufunc.h: In function `bsrl':
и т.д.
т.е проблемма в #include <machine/cpufunc.h>
как с этим бороться ?