mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.6 KiB

  1. --- gpm-1.20.1/src/prog/gpm-root.y.orig 2007-11-05 11:58:55.000000000 +0100
  2. +++ gpm-1.20.1/src/prog/gpm-root.y 2007-11-05 11:59:09.000000000 +0100
  3. @@ -44,7 +44,7 @@
  4. #include <sys/stat.h> /* fstat() */
  5. #include <sys/utsname.h> /* uname() */
  6. #include <termios.h> /* winsize */
  7. -#include <linux/limits.h> /* OPEN_MAX */
  8. +#include <linux/limits.h> /* NR_OPEN */
  9. #include <linux/vt.h> /* VT_ACTIVATE */
  10. #include <linux/keyboard.h> /* K_SHIFT */
  11. #include <utmp.h>
  12. @@ -525,7 +525,7 @@
  13. open("/dev/null",O_RDONLY); /* stdin */
  14. open(consolename,O_WRONLY); /* stdout */
  15. dup(1); /* stderr */
  16. - for (i=3;i<OPEN_MAX; i++) close(i);
  17. + for (i=3;i<NR_OPEN; i++) close(i);
  18. execl("/bin/sh","sh","-c",self->arg,(char *)NULL);
  19. exit(1); /* shouldn't happen */
  20. default: return 0;
  21. --- gpm-1.20.1/src/special.c.orig 2002-12-24 23:57:16.000000000 +0100
  22. +++ gpm-1.20.1/src/special.c 2007-11-05 11:57:14.000000000 +0100
  23. @@ -25,7 +25,7 @@
  24. /* This file is compiled conditionally, see the Makefile */
  25. -#include <linux/limits.h> /* for OPEN_MAX */
  26. +#include <linux/limits.h> /* for NR_OPEN */
  27. #include <stdio.h>
  28. #include <stdlib.h>
  29. #include <string.h>
  30. @@ -155,7 +155,7 @@
  31. open(GPM_NULL_DEV,O_RDONLY); /* stdin */
  32. open(option.consolename,O_WRONLY); /* stdout */
  33. dup(1); /* stderr */
  34. - for (i=3;i<OPEN_MAX; i++) close(i);
  35. + for (i=3;i<NR_OPEN; i++) close(i);
  36. execl("/bin/sh","sh","-c",command,(char *)NULL);
  37. exit(1); /* shouldn't happen */