Emiel Kollof has posted bug 89544 for KDE 3.3.3, for getting KDE to compile on DragonFly. It may be worthwhile to register on KDE’s Bugzilla and vote for that bug, so that it gets “on the radar”.
Update: There’s related bug 89577 too.
Update update: Joerg Sonnenberger noted (see bug report linked above) that the DragonFly code can be changed to make this work, though the Single Unix Specification implies that the problem is with where KDE is looking. Quote below:
“The Single Unix Specification specifies as primary header for the
ntohl family. Including this file is the most correct solution, e.g. on NetBSD
doesn’t provide them too.
In http://www.opengroup.org/onlinepubs/007908799/xns/netinetin.h.html is a comment
that the ntohl is visible, but the comment about arpa/inet.h suggests that the
internal inclusion is somewhat meant.
The DragonFly header will be changed to include arpa/inet.h, but KDE code base is
better off using arpa/inet.h directly.”