mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 05:10:29 -04:00
Pass maintainership to submitter. PR: 117912 Submitted by: Sunry Chen <sunrychen at gmail.com>
35 lines
1,005 B
C
35 lines
1,005 B
C
--- ./hanzim.c.orig 2002-03-20 14:34:31.000000000 +0800
|
|
+++ ./hanzim.c 2007-11-08 16:33:14.000000000 +0800
|
|
@@ -204,6 +204,16 @@
|
|
main(int argc, char *argv[]) {
|
|
Tcl_Interp *interp;
|
|
|
|
+/* hanzim need a running XFree to do its initial setup, rectify */
|
|
+ if (argc>1 && !(strcmp(argv[1], "-port-install")))
|
|
+ {
|
|
+ char *portdatadir = "%%PREFIX%%/lib/hanzim";
|
|
+ init_vars(portdatadir);
|
|
+ kanzi(portdatadir);
|
|
+ kanhe(portdatadir);
|
|
+ exit(0);
|
|
+ }
|
|
+
|
|
/* do an initial parse of the command-line options so that help message */
|
|
/* can be printed and we can set some global flags */
|
|
interp = Tcl_CreateInterp();
|
|
@@ -460,10 +470,14 @@
|
|
struct _timeb tp;
|
|
_ftime(&tp);
|
|
#else
|
|
+/*
|
|
struct timeb tp;
|
|
ftime(&tp);
|
|
+*/
|
|
+ time_t t;
|
|
+ time(&t);
|
|
#endif
|
|
- srand(tp.millitm);
|
|
+ srand(t);
|
|
|
|
if (!quiet) {
|
|
printf("\n\nWelcome to Hanzi Master, where YOU will master the hanzi.\n");
|