3 --- cinelerra/mwindow.C.orig 2010-02-01 09:14:29.000000000 +0000
4 +++ cinelerra/mwindow.C
13 #include "awindowgui.h"
14 @@ -1248,11 +1250,11 @@ void MWindow::test_plugins(EDL *new_edl,
19 +#if defined(PROC_SHMMAX_PATH)
20 void MWindow::init_shm()
23 - FILE *fd = fopen("/proc/sys/kernel/shmmax", "w");
24 + FILE *fd = fopen(PROC_SHMMAX_PATH, "w");
27 fprintf(fd, "0x7fffffff");
28 @@ -1260,10 +1262,10 @@ void MWindow::init_shm()
32 - fd = fopen("/proc/sys/kernel/shmmax", "r");
33 + fd = fopen(PROC_SHMMAX_PATH, "r");
36 - MainError::show_error("MWindow::init_shm: couldn't open /proc/sys/kernel/shmmax for reading.\n");
37 + MainError::show_error("MWindow::init_shm: couldn't open " PROC_SHMMAX_PATH " for reading.\n");
41 @@ -1273,13 +1275,17 @@ void MWindow::init_shm()
43 if(result < 0x7fffffff)
45 - eprintf("WARNING: /proc/sys/kernel/shmmax is 0x%llx, which is too low.\n"
46 + eprintf("WARNING: " PROC_SHMMAX_PATH " is 0x%llx, which is too low.\n"
47 "Before running Cinelerra do the following as root:\n"
48 - "echo \"0x7fffffff\" > /proc/sys/kernel/shmmax\n",
49 + "echo \"0x7fffffff\" > " PROC_SHMMAX_PATH "\n",
55 +void MWindow::init_shm() {
56 + /* We can't do anything. */
61 void MWindow::create_objects(int want_gui,