The attached patch fixes the compilation of sys-fs/e2fsprogs-1.40.3. According to the source, both patches seem to be upstream now.
Created attachment 138407 [details, diff] e2fsprogs-1.40.3.patch
hmmm... I don't recall sending them upstream... they probably fixed up themselves.
committed, thanks!