Whilst attempting to get Thomas Wintergerst's c4b drivers to compile in 8.1-RELEASE (I've succeeded in getting it to work in 7.2-RELEASE) I've come across some problems. Whilst I've managed to get through the 1st batch, I'm having some issues with the following error:
A cursory look at the /usr/src/sys/sys/ directory told me that there's no define, however looking on the working system (7.2-RELEASE) and the define is present in file.h:
Obviously it's not present in 8.1-RELEASE.
I've been searching on how to get around this, but my Google fu appears to be weak as I can't even find a description of the changes made to file.h. I also checked /usr/src/UPDATING, but again didn't find anything obvious.
Should this be a simple replace job, or will it be far more complicated?
Many thanks,
John
Code:
...capidev.c:897: warning: implicit declaration of function 'FILE_LOCK'
A cursory look at the /usr/src/sys/sys/ directory told me that there's no define, however looking on the working system (7.2-RELEASE) and the define is present in file.h:
Code:
/* Lock a file. */
#define FILE_LOCK(f) mtx_lock((f)->f_mtxp)
#define FILE_UNLOCK(f) mtx_unlock((f)->f_mtxp)
#define FILE_LOCKED(f) mtx_owned((f)->f_mtxp)
#define FILE_LOCK_ASSERT(f, type) mtx_assert((f)->f_mtxp, (type))
I've been searching on how to get around this, but my Google fu appears to be weak as I can't even find a description of the changes made to file.h. I also checked /usr/src/UPDATING, but again didn't find anything obvious.
Should this be a simple replace job, or will it be far more complicated?
Many thanks,
John