Fix for shared data size conflict

This commit is contained in:
Andrew Bauer 2014-07-07 15:56:56 -05:00
parent 70471936a7
commit 3513f87163
1 changed files with 8 additions and 1 deletions

View File

@ -27,6 +27,7 @@ package ZoneMinder::Memory;
use 5.006;
use strict;
use warnings;
use Config;
require Exporter;
require ZoneMinder::Base;
@ -127,7 +128,13 @@ else
}
# 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 $mem_seq = 0;