When creating glibconfig.h, we need to include <sys/types.h> before
<sys/poll.h> for NetBSD.
diff --git a/configure.in b/configure.in
index 0081700..161cded 100644
--- a/configure.in
+++ b/configure.in
@@ -551,6 +551,7 @@
     echo '#include <values.h>' >> $outfile
   fi
   if test x$glib_sys_poll_h = xyes; then
+    echo '#include <sys/types.h>' >> $outfile
     echo '#include <sys/poll.h>' >> $outfile
   fi