Applied this patch to ensure build smoothly on

some environment/compiler.

PR: 41535
Submitted by: MAINTAINER
This commit is contained in:
Kevin Lo 2002-08-21 09:47:42 +00:00
parent 8faa2eac9c
commit d6df081836
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64747
2 changed files with 13 additions and 1 deletions

View File

@ -58,8 +58,10 @@ pre-fetch:
@${ECHO} -- @${ECHO} --
.endif .endif
post-extract:
${MV} ${WRKDIR}/chewing ${WRKSRC}/src/Cinput
post-patch: post-patch:
@mv ${WRKDIR}/chewing ${WRKSRC}/src/Cinput
@cd ${WRKSRC}/src/Cinput/chewing; ${SH} ./patch_chewing @cd ${WRKSRC}/src/Cinput/chewing; ${SH} ./patch_chewing
post-install: post-install:

View File

@ -0,0 +1,10 @@
--- src/Cinput/chewing/sort_word.c.orig Sun Aug 11 12:32:03 2002
+++ src/Cinput/chewing/sort_word.c Sun Aug 11 12:32:20 2002
@@ -40,6 +40,7 @@
Key2Pho(phoneBuf, keyBuf, KB_DEFAULT, 1) ;
word_data[nWord].num = PhoneBg2Uint(phoneBuf) ;
nWord++ ;
+ return 0;
}
void Output()