120-kernel26-compat.patch 503 B

123456789101112131415
  1. --- cmdpad-0.0.3/src/parse.orig 2008-01-05 23:55:32.000000000 +0100
  2. +++ cmdpad-0.0.3/src/parse.c 2008-01-05 23:56:07.000000000 +0100
  3. @@ -289,6 +289,12 @@
  4. pchEventDevice = strdup( pchValue) ;
  5. return 1 ;
  6. }
  7. + if( (pchValue != NULL) &&
  8. + (strncmp( pchValue, "/dev/event", 6) == 0) )
  9. + {
  10. + pchEventDevice = strdup( pchValue) ;
  11. + return 1 ;
  12. + }
  13. printf( "Option 'device' expects a /dev/input/eventX argument\n");
  14. return -1 ;
  15. }