Hello:

I was wondering if anyone has tried using scannedonly with samba on openbsd
(4.9).
Scannedonly is a daemon/VFS module for samba that scans files on request
using clamav (description at http://olivier.sessink.nl/scannedonly/ )
The samba version (3.5.6) available with openbsd 4.9 already includes the
VFS module (at /usr/local/lib/samba/vfs/scannedonly.so).
However, when I try to compile the deamon from source, it dies almost
immediately with the error:

scannedonlyd_clamav.c:73: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'statuslock'

at the statement:

"pthread_spinlock_t statuslock;"

When I look at the pthread.h header file (which is included in the source),
I cannot find "pthread_spinlock_t" defined.

It is my understanding that on linux "pthread_spinlock_t" is defined in
"/usr/include/bits/pthreadtypes.h;" however, there is no "pthreadtypes.h"
header file that I can find on openbsd 4.9.

I must admit that this is a bit beyond my current understanding.  I am
wondering if there is some way around this, or if there is something in
ports/packages that can be installed to provide the missing
"pthread_spinlock_t" definition?  Or, am I just out of luck?

Thanks in advance for any advice.

Bye - ted

Reply via email to