Created attachment 397110 [details, diff] replacement file for surf-9999-gentoo.patch surf-9999-gentoo.patch fails to apply to config.mk because line 21 of: http://git.suckless.org/surf/tree/config.mk was changed from: CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE to: CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE (thanks to yngwin for finding) corrected surf-9999-gentoo.patch attached.
Created attachment 397112 [details] failed emerge log
Fixed. Thanks for the patch!