diff options
author | obache <obache@pkgsrc.org> | 2012-10-16 13:21:31 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2012-10-16 13:21:31 +0000 |
commit | 78b55ef3f3ec04c011758036162ee717b299c392 (patch) | |
tree | 5bc901d68d03b8be088cdc4f54acce47e8342f5e /lang/perl5/patches | |
parent | 6b5c66084c33f284b5a0313d2a5ddbcb762a5ec4 (diff) | |
download | pkgsrc-78b55ef3f3ec04c011758036162ee717b299c392.tar.gz |
Add a patch for Haiku OS (missing LOG_PRIMASK).
taken from CPAN Sys-Syslog-0.30.
Diffstat (limited to 'lang/perl5/patches')
-rw-r--r-- | lang/perl5/patches/patch-cpan_Sys-Syslog_Syslog.xs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/perl5/patches/patch-cpan_Sys-Syslog_Syslog.xs b/lang/perl5/patches/patch-cpan_Sys-Syslog_Syslog.xs new file mode 100644 index 00000000000..41b8dbe859e --- /dev/null +++ b/lang/perl5/patches/patch-cpan_Sys-Syslog_Syslog.xs @@ -0,0 +1,18 @@ +$NetBSD: patch-cpan_Sys-Syslog_Syslog.xs,v 1.1 2012/10/16 13:21:31 obache Exp $ + +CPAN-RT#77577: Build on Haiku-OS + https://rt.cpan.org/Public/Bug/Display.html?id=77577 + +--- cpan/Sys-Syslog/Syslog.xs.orig 2012-04-25 00:18:32.000000000 +0000 ++++ cpan/Sys-Syslog/Syslog.xs +@@ -39,6 +39,10 @@ static SV *ident_svptr; + #define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3) + #endif + ++#ifndef LOG_PRIMASK ++#define LOG_PRIMASK 0x07 ++#endif ++ + #ifndef LOG_PRI + #define LOG_PRI(p) ((p) & LOG_PRIMASK) + #endif |