diff --git a/srcpkgs/libnfsidmap/template b/srcpkgs/libnfsidmap/template
index 956c39f6254..d47d169cda1 100644
--- a/srcpkgs/libnfsidmap/template
+++ b/srcpkgs/libnfsidmap/template
@@ -1,7 +1,7 @@
 # Template file for 'libnfsidmap'
 pkgname=libnfsidmap
 version=0.26
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-static"
 hostmakedepends="automake libtool"
@@ -14,6 +14,7 @@ distfiles="https://fedorapeople.org/~steved/${pkgname}/${version}/${pkgname}-${v
 checksum=391cd35a8aa48bcba1678b483c3e2525d0990eca963bb035962fcf1e3ee2a8bf
 
 pre_configure() {
+	sed -i 's,u_int,uint,g;s,u_char,unsigned char,g' *.[ch]
 	autoreconf -fi
 }