Fix for shared data size conflict
This commit is contained in:
parent
70471936a7
commit
3513f87163
|
@ -27,6 +27,7 @@ package ZoneMinder::Memory;
|
||||||
use 5.006;
|
use 5.006;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
use Config;
|
||||||
|
|
||||||
require Exporter;
|
require Exporter;
|
||||||
require ZoneMinder::Base;
|
require ZoneMinder::Base;
|
||||||
|
@ -127,7 +128,13 @@ else
|
||||||
}
|
}
|
||||||
|
|
||||||
# Native architecture
|
# Native architecture
|
||||||
our $arch = int(3.2*length(~0));
|
|
||||||
|
# The following returned the wrong result on some 32 bit distros running on 64 bit hardware
|
||||||
|
#our $arch = int(3.2*length(~0));
|
||||||
|
|
||||||
|
# Use selectminbits instead
|
||||||
|
our $arch = $Config{selectminbits};
|
||||||
|
|
||||||
our $native = $arch/8;
|
our $native = $arch/8;
|
||||||
our $mem_seq = 0;
|
our $mem_seq = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue