develooper Front page | perl.perl5.porters | Postings from April 2000

Sys::Syslog and _PATH_LOG

Thread Next
Tom Hughes
April 30, 2000 06:55
Sys::Syslog and _PATH_LOG
Message ID:
Since 5.6.0 was released a number of people have contacted me
regarding problems with my XSification of Sys::Syslog.

The main problem appears to be that _PATH_LOG is always defined
now but will die if there was no #define for it in the system
header file. Previously _PATH_LOG was only defined if the macro
existed in the header file.

I didn't realise this would be a problem because _PATH_LOG isn't
a documented part of the interface and I changed so
that it didn't mind the change as part of my patch.

However at least one popular module on CPAN tries to test whether
or not _PATH_LOG is defined in order to decide whether to use Unix
or UDP sockets for logging.

The question therefore is whether we should revert to the old
behaviour of only defining it when we have a definition or should
instead say that users need to change their code?


Tom Hughes (
...We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About