From: Piotr Gregor Date: Mon, 19 Sep 2016 21:47:14 +0000 (+0100) Subject: FS-9527 [avmd]: Fix MAP_POPULATE on FreeBSD X-Git-Tag: v1.6.11~9^2~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0247c92cb52970f405a53710d513a2ef1e60b371;p=thirdparty%2Ffreeswitch.git FS-9527 [avmd]: Fix MAP_POPULATE on FreeBSD Remove unsupported flag. --- diff --git a/src/mod/applications/mod_avmd/avmd_fast_acosf.c b/src/mod/applications/mod_avmd/avmd_fast_acosf.c index cd728bd577..9c6d4ba37b 100644 --- a/src/mod/applications/mod_avmd/avmd_fast_acosf.c +++ b/src/mod/applications/mod_avmd/avmd_fast_acosf.c @@ -169,13 +169,7 @@ extern int init_fast_acosf(void) acos_fd = fileno(acos_fp); acos_table = (float *) mmap( NULL, /* kernel chooses the address at which to create the mapping */ - ACOS_TABLE_LENGTH * sizeof(float), - PROT_READ, - MAP_SHARED | MAP_POPULATE, /* read-ahead on the file. Later accesses to the mapping - * will not be blocked by page faults */ - acos_fd, - 0 - ); + ACOS_TABLE_LENGTH * sizeof(float), PROT_READ, MAP_SHARED, acos_fd, 0); if (acos_table == MAP_FAILED) return -4; return 0;