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

Sys::Syslog and _PATH_LOG

Thread Next
From:
Tom Hughes
Date:
April 30, 2000 06:55
Subject:
Sys::Syslog and _PATH_LOG
Message ID:
8b1860b749.tom@compton.compton.nu
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 Syslog.pm 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

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu/
...We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About