in reply to Help building embedded threaded perl 5.6.1 (was: Stanley Hopcroft)
#include <XSUB.h> [download]
for a threaded Perl (tried with 5.6.1 & 5.7.2 on FreeBSD 4.3-STABLE)
This probably should be in the perlembed man page