mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
Merge pull request #967 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-9527-freebsd-10.3-compile-error to master
* commit '0247c92cb52970f405a53710d513a2ef1e60b371': FS-9527 [avmd]: Fix MAP_POPULATE on FreeBSD
This commit is contained in:
commit
9839dc90f9
@ -169,13 +169,7 @@ extern int init_fast_acosf(void)
|
|||||||
acos_fd = fileno(acos_fp);
|
acos_fd = fileno(acos_fp);
|
||||||
acos_table = (float *) mmap(
|
acos_table = (float *) mmap(
|
||||||
NULL, /* kernel chooses the address at which to create the mapping */
|
NULL, /* kernel chooses the address at which to create the mapping */
|
||||||
ACOS_TABLE_LENGTH * sizeof(float),
|
ACOS_TABLE_LENGTH * sizeof(float), PROT_READ, MAP_SHARED, acos_fd, 0);
|
||||||
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
|
|
||||||
);
|
|
||||||
if (acos_table == MAP_FAILED) return -4;
|
if (acos_table == MAP_FAILED) return -4;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user