1 diff -u -r ../../glkterm/Makefile ./Makefile
2 --- ../../glkterm/Makefile 2012-10-14 19:21:09.000000000 +0200
3 +++ ./Makefile 2014-02-15 13:43:48.000000000 +0100
11 # You may need to set directories to pick up the ncursesw library.
12 #INCLUDEDIRS = -I/usr/5include
13 #LIBDIRS = -L/usr/5lib
15 +LIBS = $(LDFLAGS) -lncursesw
17 # Use this LIBS line instead of the above if you do not have ncursesw
18 # available. For example, on a standard Mac OSX setup. (You will
19 # probably also have to set LOCAL_NCURSESW in CFLAGS or in gtoption.h.)
25 -CFLAGS = $(OPTIONS) $(INCLUDEDIRS)
26 +#CFLAGS = $(OPTIONS) $(INCLUDEDIRS)
28 GLKLIB = libglktermw.a
31 cgunicod.o: cgunigen.c
33 $(GLKLIB): $(GLKTERM_OBJS)
34 - ar r $(GLKLIB) $(GLKTERM_OBJS)
36 + $(AR) r $(GLKLIB) $(GLKTERM_OBJS)
40 echo LINKLIBS = $(LIBDIRS) $(LIBS) > Make.glktermw
41 diff -u -r ../../glkterm/cgdate.c ./cgdate.c
42 --- ../../glkterm/cgdate.c 2012-10-14 19:21:09.000000000 +0200
43 +++ ./cgdate.c 2014-02-15 13:45:27.000000000 +0100
49 +time_t timegm (struct tm *tm) {
54 + setenv("TZ", "", 1);
58 + setenv("TZ", tz, 1);
66 /* This file is copied directly from the cheapglk package.
67 (Except that warning string constants are changed to L"..." constants.) */
69 diff -u -r ../../glkterm/gtncursesw.c ./gtncursesw.c
70 --- ../../glkterm/gtncursesw.c 2012-10-14 19:21:09.000000000 +0200
71 +++ ./gtncursesw.c 2014-02-15 13:43:48.000000000 +0100
73 #else /* LOCAL_NCURSESW */
75 #define _XOPEN_SOURCE_EXTENDED /* ncursesw *wch* and *wstr* functions */
76 -#include <ncursesw/ncurses.h>
79 int local_get_wch (wint_t *ch)