mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fixes to make irssi work with other (older and newer) perl versions
than 5.005 git-svn-id: http://svn.irssi.org/repos/irssi/trunk@610 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a02b903252
commit
337d34fe54
@ -33,6 +33,15 @@
|
||||
#include "commands.h"
|
||||
#include "misc.h"
|
||||
|
||||
/* For compatibility with perl 5.004 and older */
|
||||
#ifndef ERRSV
|
||||
# define ERRSV GvSV(errgv)
|
||||
#endif
|
||||
|
||||
#ifndef PL_perl_destruct_level
|
||||
# define PL_perl_destruct_level perl_destruct_level
|
||||
#endif
|
||||
|
||||
extern void xs_init(void);
|
||||
|
||||
typedef struct {
|
||||
@ -664,7 +673,7 @@ void irssi_perl_init(void)
|
||||
command_bind("perlflush", NULL, (SIGNAL_FUNC) cmd_perlflush);
|
||||
signal_grabbed = siglast_grabbed = FALSE;
|
||||
|
||||
perl_destruct_level = 1;
|
||||
PL_perl_destruct_level = 1;
|
||||
irssi_perl_start();
|
||||
irssi_perl_autorun();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user