windows
This commit is contained in:
parent
5d6ebf7a53
commit
e4f9a4578a
|
@ -10,3 +10,7 @@ LDADD=-L/usr/X11R6/lib -lX11 -ggdb
|
||||||
LDFLAGS=-pthread
|
LDFLAGS=-pthread
|
||||||
TARG=drawterm
|
TARG=drawterm
|
||||||
|
|
||||||
|
# for root
|
||||||
|
libmachdep.a:
|
||||||
|
arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/'`; \
|
||||||
|
(cd posix-$$arch && make)
|
||||||
|
|
|
@ -14,7 +14,7 @@ FS=fs-win32
|
||||||
IP=win32
|
IP=win32
|
||||||
OS=win32
|
OS=win32
|
||||||
GUI=win32
|
GUI=win32
|
||||||
LDFLAGS=
|
LDFLAGS=-mwindows
|
||||||
LDADD=-lkernel32 -ladvapi32 -lgdi32 -lmpr -lwsock32
|
LDADD=-lkernel32 -ladvapi32 -lgdi32 -lmpr -lwsock32
|
||||||
TARG=drawterm.exe
|
TARG=drawterm.exe
|
||||||
|
|
||||||
|
@ -28,3 +28,7 @@ TARG=drawterm.exe
|
||||||
#OS=win32
|
#OS=win32
|
||||||
#GUI=win32
|
#GUI=win32
|
||||||
|
|
||||||
|
# for root
|
||||||
|
libmachdep.a:
|
||||||
|
(cd win32-386; make)
|
||||||
|
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -69,10 +69,3 @@ libc/libc.a:
|
||||||
gui-$(GUI)/libgui.a:
|
gui-$(GUI)/libgui.a:
|
||||||
(cd gui-$(GUI); make)
|
(cd gui-$(GUI); make)
|
||||||
|
|
||||||
#libmachdep.a:
|
|
||||||
# arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/'`; \
|
|
||||||
# (cd gcc$$arch && make)
|
|
||||||
|
|
||||||
libmachdep.a:
|
|
||||||
(cd posix-386; make)
|
|
||||||
|
|
||||||
|
|
|
@ -244,3 +244,9 @@ extern int nrand(int);
|
||||||
extern long lrand(void);
|
extern long lrand(void);
|
||||||
extern long lnrand(long);
|
extern long lnrand(long);
|
||||||
extern double frand(void);
|
extern double frand(void);
|
||||||
|
|
||||||
|
extern ulong getcallerpc(void*);
|
||||||
|
extern char* cleanname(char*);
|
||||||
|
extern void sysfatal(char*, ...);
|
||||||
|
extern char* strecpy(char*, char*, char*);
|
||||||
|
|
||||||
|
|
|
@ -456,7 +456,7 @@ kbdputc(Queue *q, int c)
|
||||||
kc[nk++] = c;
|
kc[nk++] = c;
|
||||||
c = latin1(kc, nk);
|
c = latin1(kc, nk);
|
||||||
if(c < -1) /* need more keystrokes */
|
if(c < -1) /* need more keystrokes */
|
||||||
return;
|
return 0;
|
||||||
if(c != -1) /* valid sequence */
|
if(c != -1) /* valid sequence */
|
||||||
_kbdputc(c);
|
_kbdputc(c);
|
||||||
else
|
else
|
||||||
|
|
|
@ -59,7 +59,7 @@ kproc(char *name, void (*fn)(void*), void *arg)
|
||||||
p->fgrp = up->fgrp;
|
p->fgrp = up->fgrp;
|
||||||
if(p->fgrp)
|
if(p->fgrp)
|
||||||
incref(&p->fgrp->ref);
|
incref(&p->fgrp->ref);
|
||||||
strecpy(p->text, sizeof p->text, name);
|
strecpy(p->text, p->text+sizeof p->text, name);
|
||||||
|
|
||||||
osproc(p);
|
osproc(p);
|
||||||
return p->pid;
|
return p->pid;
|
||||||
|
|
|
@ -195,7 +195,7 @@ SC_read(SConn *conn, uchar *buf, int n)
|
||||||
uchar count[2], digest[SHA1dlen];
|
uchar count[2], digest[SHA1dlen];
|
||||||
int len, nr;
|
int len, nr;
|
||||||
|
|
||||||
if(read(ss->fd, count, 2) != 2 || count[0]&0x80 == 0){
|
if(read(ss->fd, count, 2) != 2 || (count[0]&0x80) == 0){
|
||||||
werrstr("!SC_read invalid count");
|
werrstr("!SC_read invalid count");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue