]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9527 [avmd]: Fix MAP_POPULATE on FreeBSD
authorPiotr Gregor <piotrek.gregor@gmail.com>
Mon, 19 Sep 2016 21:47:14 +0000 (22:47 +0100)
committerPiotr Gregor <piotrek.gregor@gmail.com>
Mon, 19 Sep 2016 21:47:14 +0000 (22:47 +0100)
Remove unsupported flag.

src/mod/applications/mod_avmd/avmd_fast_acosf.c

index cd728bd5773a14a0086d2fb18590f20670aa94c9..9c6d4ba37bbccfd043e5e3b7d4e1696f1b747803 100644 (file)
@@ -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;