9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.64k stars 326 forks source link

[patch] src/cmd/fontsrv: error: use of undeclared identifier 'i' #409

Closed nms42 closed 4 years ago

nms42 commented 4 years ago

patch below

9c -pthread -I/usr/local/include -I/usr/local/include/freetype2 x11.c
x11.c:101:6: error: use of undeclared identifier 'i'
x11.c:101:11: error: use of undeclared identifier 'i'
x11.c:101:30: error: use of undeclared identifier 'i'
x11.c:102:15: error: use of undeclared identifier 'i'
x11.c:103:26: error: use of undeclared identifier 'i'
mk: 9c -pthread -I/usr/local/include ...  : exit status=exit(1)
diff --git a/src/cmd/fontsrv/x11.c b/src/cmd/fontsrv/x11.c
index 417dcfa6..c1d10197 100644
--- a/src/cmd/fontsrv/x11.c
+++ b/src/cmd/fontsrv/x11.c
@@ -61,6 +61,7 @@ load(XFont *f)
        FT_Error e;
        FT_ULong charcode;
        FT_UInt glyph_index;
+       int i;

        if(f->loaded)
                return;
nms42 commented 4 years ago

Patch applied. Thanks