r1709
stsp at dslinux.in-berlin.de
stsp at dslinux.in-berlin.de
Sat Apr 14 11:51:30 CEST 2007
Author: stsp
Date: 2007-04-14 11:51:25 +0200 (Sat, 14 Apr 2007)
New Revision: 1709
Log:
Apply patch by Troy Davis (GPF).
In his own words:
here is a fix to the gpm.h version in r1708
now I remember why I had renamed _PATH_DEV to _gPATH_DEV in my original
patch, its because its already defined and would default gpm to use /dev
instead of writable /var/run
the patch just changes gpm.h to use _PATH_VARRUN instead of _PATH_DEV for
the rest of the defines.
Modified: trunk/user/gpm/src/headers/gpm.h
===================================================================
--- trunk/user/gpm/src/headers/gpm.h 2007-04-13 19:24:06 UTC (rev 1708)
+++ trunk/user/gpm/src/headers/gpm.h 2007-04-14 09:51:25 UTC (rev 1709)
@@ -50,7 +50,7 @@
#endif
#ifndef _PATH_DEV
-#define _PATH_DEV "/var/run/" /* /dev/ is read-only on DSLinux*/
+#define _PATH_DEV "/dev"
#endif
#define GPM_NODE_DIR _PATH_VARRUN
@@ -62,14 +62,14 @@
#define GPM_NODE_DIR_MODE 0775
#define GPM_NODE_PID GPM_NODE_DIR "gpm.pid"
-#define GPM_NODE_DEV _PATH_DEV "gpmctl"
+#define GPM_NODE_DEV _PATH_VARRUN "gpmctl"
/* itz Wed Jul 1 12:09:29 PDT 1998 let's simplify this by placing the
file always in /dev whether it's a device or socket. It doesn't
really belong to /var/run anyway. */
#define GPM_NODE_CTL GPM_NODE_DEV
-#define GPM_NODE_FIFO _PATH_DEV "gpmdata"
+#define GPM_NODE_FIFO _PATH_VARRUN "gpmdata"
/*....................................... Cfg buttons */
More information about the dslinux-commit
mailing list