Except for that line where @elextr commented, it looks good to me.
As a separate PR we could probably remove the inconsistently guarded sys/types.h usage and replace with GLib typedefs as well.
sys/types.h
—Reply to this email directly or view it on GitHub.