aboutsummaryrefslogtreecommitdiff
path: root/src/libhtml
diff options
context:
space:
mode:
Diffstat (limited to 'src/libhtml')
-rw-r--r--src/libhtml/impl.h2
-rw-r--r--src/libhtml/mkfile14
-rw-r--r--src/libhtml/utils.c1
3 files changed, 6 insertions, 11 deletions
diff --git a/src/libhtml/impl.h b/src/libhtml/impl.h
index f8c79ea3..1dfa689c 100644
--- a/src/libhtml/impl.h
+++ b/src/libhtml/impl.h
@@ -158,6 +158,6 @@ extern void _freetokens(Token* tarray, int n);
extern Token* _gettoks(uchar* data, int datalen, int chset, int mtype, int* plen);
extern int _tokaval(Token* t, int attid, Rune** pans, int xfer);
-#pragma varargck type "T" Token*
+/* #pragma varargck type "T" Token* */
#include "runetab.h"
diff --git a/src/libhtml/mkfile b/src/libhtml/mkfile
index 0952c451..7496d830 100644
--- a/src/libhtml/mkfile
+++ b/src/libhtml/mkfile
@@ -1,6 +1,6 @@
-<$SYS9/$systype/$objtype/mkfile
+<$PLAN9/src/mkhdr
-LIB=$LIB9/libhtml.a
+LIB=libhtml.a
OFILES=\
build.$O\
@@ -10,13 +10,7 @@ OFILES=\
runetab.$O\
HFILES=\
- $SYS9/sys/include/html.h\
+ $PLAN9/include/html.h\
impl.h\
-UPDATE=\
- mkfile\
- $HFILES\
- ${OFILES:%.$O=%.c}\
- ${LIB:$SYS9/$systype/$objtype/%=$SYS9/$systype/386/%}\
-
-<$SYS9/sys/src/cmd/mksyslib
+<$PLAN9/src/mksyslib
diff --git a/src/libhtml/utils.c b/src/libhtml/utils.c
index db22bba7..32fd70d0 100644
--- a/src/libhtml/utils.c
+++ b/src/libhtml/utils.c
@@ -1,4 +1,5 @@
#include <u.h>
+#include <limits.h>
#include <libc.h>
#include <draw.h>
#include <html.h>