I just tested it again. It looks like you only need to add the following line to perlvtab.c to get it to compile under Mac OS X:
Show quoted text> extern char **environ;
On Oct 18, 2012, at 5:14 PM, Bugs in SQLite-VirtualTable via RT <bug-SQLite-VirtualTable@rt.cpan.org> wrote:
Show quoted text>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "SQLite::VirtualTable doesn't compile on Mac OS X 10.8",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [rt.cpan.org #80272]. Your ticket is accessible
> on the web at:
>
>
https://rt.cpan.org/Ticket/Display.html?id=80272
>
> Please include the string:
>
> [rt.cpan.org #80272]
>
> in the subject line of all future correspondence about this issue. To do so,
> you may reply to this message.
>
> Thank you,
> bug-SQLite-VirtualTable@rt.cpan.org
>
> -------------------------------------------------------------------------
> I was getting this compile error trying to compile DBD::SQLite on Mac OS X 10.8:
>
> perlvtab.c:851:18: error: use of undeclared identifier 'environ'
> char **env = environ;
> ^
>
> Adding the following two lines to the top of perlvtab.c fixed the problem for me:
>
> #include <unistd.h>
> extern char **environ;