smd.c: fix compile