The Xi.h uses CARD32, this is not present in Xi.h itself. An include of <X11/X.h> does the trick. This is a recent(no more than a week old) compile problem for the git xserver. Please fix this is in an appropriate way. Maarten Maathuis.