skkfep-0.87-gentoo.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. diff -Naur skkfep-0.87.orig/config.h skkfep-0.87/config.h
  2. --- skkfep-0.87.orig/config.h 2003-09-03 08:50:18.000000000 +0900
  3. +++ skkfep-0.87/config.h 2008-11-01 09:53:22.000000000 +0900
  4. @@ -24,8 +24,8 @@
  5. /* SKK server */
  6. #define USER_DIC_NAME ".skk-jisyo"
  7. -/* #define SYSTEM_DIC_NAME "/usr/local/emacs/etc/SKK-JISYO.L" */
  8. +#define SYSTEM_DIC_NAME "/usr/share/skk/SKK-JISYO.L"
  9. #define NATIVECODE euc /* EUC Kanji code */
  10. -#define SKK_SERVER_HOST "ei5nazha" /* SKK server host */
  11. +#define SKK_SERVER_HOST "localhost" /* SKK server host */
  12. diff -Naur skkfep-0.87.orig/connserv.c skkfep-0.87/connserv.c
  13. --- skkfep-0.87.orig/connserv.c 2003-09-03 08:49:30.000000000 +0900
  14. +++ skkfep-0.87/connserv.c 2008-11-01 09:59:19.000000000 +0900
  15. @@ -5,6 +5,7 @@
  16. */
  17. #include "config.h"
  18. #include <stdio.h>
  19. +#include <string.h>
  20. #include <sys/types.h>
  21. #include "skklib.h"
  22. diff -Naur skkfep-0.87.orig/connsh.c skkfep-0.87/connsh.c
  23. --- skkfep-0.87.orig/connsh.c 2003-09-03 08:49:30.000000000 +0900
  24. +++ skkfep-0.87/connsh.c 2008-11-01 10:03:01.000000000 +0900
  25. @@ -1,5 +1,8 @@
  26. #include "config.h"
  27. #include <stdio.h>
  28. +#include <stdlib.h>
  29. +#include <string.h>
  30. +#include <unistd.h>
  31. #include <sys/types.h>
  32. #include <sys/file.h>
  33. #include <fcntl.h>
  34. diff -Naur skkfep-0.87.orig/fep.c skkfep-0.87/fep.c
  35. --- skkfep-0.87.orig/fep.c 2003-09-03 08:49:31.000000000 +0900
  36. +++ skkfep-0.87/fep.c 2008-11-01 09:55:15.000000000 +0900
  37. @@ -1,6 +1,7 @@
  38. #include "config.h"
  39. #include "fep.h"
  40. #include <stdlib.h>
  41. +#include <string.h>
  42. #include <sys/types.h>
  43. #include <sys/time.h>
  44. #include "kanjicode.h"
  45. diff -Naur skkfep-0.87.orig/jc.c skkfep-0.87/jc.c
  46. --- skkfep-0.87.orig/jc.c 2003-09-03 08:49:31.000000000 +0900
  47. +++ skkfep-0.87/jc.c 2008-11-01 09:54:57.000000000 +0900
  48. @@ -33,6 +33,8 @@
  49. */
  50. #include <stdio.h>
  51. +#include <stdlib.h>
  52. +#include <string.h>
  53. #include <ctype.h>
  54. #include "config.h"
  55. diff -Naur skkfep-0.87.orig/kkconv.c skkfep-0.87/kkconv.c
  56. --- skkfep-0.87.orig/kkconv.c 2003-09-03 08:49:31.000000000 +0900
  57. +++ skkfep-0.87/kkconv.c 2008-11-01 09:58:26.000000000 +0900
  58. @@ -1,6 +1,7 @@
  59. #include "config.h"
  60. #include "fep.h"
  61. #include "functions.h"
  62. +#include <string.h>
  63. #include <ctype.h>
  64. #ifdef USE_SERVER
  65. diff -Naur skkfep-0.87.orig/protoMakefile skkfep-0.87/protoMakefile
  66. --- skkfep-0.87.orig/protoMakefile 2003-09-03 08:49:31.000000000 +0900
  67. +++ skkfep-0.87/protoMakefile 2008-11-01 09:51:59.000000000 +0900
  68. @@ -1,5 +1,5 @@
  69. CFLAGS=$(SYSINCLUDE) $(SYSDEFINE) $(DEFINE) $(OPTIMIZE)
  70. -LIBS =$(SYSLIBS) $(EXTRALIBS) -ltermcap
  71. +LIBS =$(SYSLIBS) $(EXTRALIBS) -lncurses
  72. OBJS=fep.o connsh.o readwrite.o terms.o stty.o keybind.o romkan.o etc.o\
  73. kkconv.o keymap.o version.o
  74. diff -Naur skkfep-0.87.orig/readwrite.c skkfep-0.87/readwrite.c
  75. --- skkfep-0.87.orig/readwrite.c 2003-09-03 08:49:31.000000000 +0900
  76. +++ skkfep-0.87/readwrite.c 2008-11-01 09:56:19.000000000 +0900
  77. @@ -1,5 +1,6 @@
  78. #include "config.h"
  79. #include "fep.h"
  80. +#include <string.h>
  81. #include <ctype.h>
  82. #include "kanjicode.h"
  83. #include "ctrlcode.h"
  84. diff -Naur skkfep-0.87.orig/romkan-org.c skkfep-0.87/romkan-org.c
  85. --- skkfep-0.87.orig/romkan-org.c 2003-09-03 08:49:32.000000000 +0900
  86. +++ skkfep-0.87/romkan-org.c 2008-11-01 09:58:10.000000000 +0900
  87. @@ -1,5 +1,6 @@
  88. #include "config.h"
  89. #include "fep.h"
  90. +#include <string.h>
  91. #include <ctype.h>
  92. #include "functions.h"
  93. diff -Naur skkfep-0.87.orig/skklib.c skkfep-0.87/skklib.c
  94. --- skkfep-0.87.orig/skklib.c 2003-09-03 08:49:32.000000000 +0900
  95. +++ skkfep-0.87/skklib.c 2008-11-01 09:58:48.000000000 +0900
  96. @@ -6,6 +6,7 @@
  97. #include "config.h"
  98. #include <stdio.h>
  99. +#include <string.h>
  100. #include <sys/types.h>
  101. #include <sys/stat.h>
  102. #include "skklib.h"
  103. diff -Naur skkfep-0.87.orig/stty.c skkfep-0.87/stty.c
  104. --- skkfep-0.87.orig/stty.c 2003-09-03 08:49:32.000000000 +0900
  105. +++ skkfep-0.87/stty.c 2008-11-01 09:57:30.000000000 +0900
  106. @@ -1,5 +1,6 @@
  107. #include "config.h"
  108. #include <stdio.h>
  109. +#include <stdlib.h>
  110. #include <signal.h>
  111. #include <fcntl.h>
  112. #include "fep.h"
  113. diff -Naur skkfep-0.87.orig/terms.c skkfep-0.87/terms.c
  114. --- skkfep-0.87.orig/terms.c 2003-09-03 08:49:32.000000000 +0900
  115. +++ skkfep-0.87/terms.c 2008-11-01 09:56:59.000000000 +0900
  116. @@ -1,4 +1,5 @@
  117. #include "config.h"
  118. +#include <string.h>
  119. #include "fep.h"
  120. /*#define SHOW_ESCSEQ /* show escape sequences for debugging */