kazu-yamamoto/simple-sendfile — pull request #13 by cjwatson (2013-06-14 14:26:35+00:00)
Title: Add allow-bsd flag for Debian GNU/kFreeBSD

On Debian GNU/kFreeBSD (FreeBSD kernel plus glibc), the BSD flavour of
sendfile is not usable (struct sf_hdtr is declared with -D_BSD_SOURCE=1,
but has no definition), and the Linux flavour doesn't work either since
MSG_MORE is absent. However, the fallback version works fine.

Unfortunately, Cabal treats kfreebsdgnu as os(freebsd), and
os(kfreebsdgnu) doesn't work. So, to make it possible to select the
fallback implementation on GNU/kFreeBSD, I believe a flag is necessary.