+-------------------+ | BUILDING A FILTER | +-------------------+ The following command presumes that the sample code from the end of this README is saved to a file named "sample.c". cc -m64 -D_REENTRANT -o sample sample.c -lmilter -lpthread Filters must be thread-safe! The compiler flag to link with threading support differs according to the compiler and linker used. Many operating systems like Solaris now provide support for POSIX threads in the standard C libraries. For those there is no need to link with additional libraries like libpthread etc.! Note that since filters use threads, it may be necessary to alter per process limits in your filter. For example, you might look at using setrlimit() to increase the number of open file descriptors if your filter is going to be busy.