Summary: | kdebase fails compilation on DragonFlyBSD because of a wrong #include | ||
---|---|---|---|
Product: | [I don't know] kde | Reporter: | Emiel Kollof <coolvibe> |
Component: | general | Assignee: | andy |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andy |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Emiel Kollof
2004-09-15 16:30:20 UTC
There was a commit by Andy Fawcett to kio_ldap which added <netinet/in.h> http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kioslave/ldap/kio_ldap.cpp.diff?r1=1.37&r2=1.38 Is it ok to change this to <arpa/inet.h>? using <arpa/inet.h> instead seems to compile fine on both FreeBSD 4.x and 5.x, so if that is okay for DragonflyBSD I don't object to the change. Emiel, can you check that on DF for me please? I'll commit the fix to HEAD and BRANCH if it works for you. Both <sys/param.h> and <arpa/inet.h> work fine for me. Oh, there are other places (kdegames/kdenetwork/kdepim, I might be forgetting one or two) that also use netinet/in.h to get htonl() and friends. Might be prudent to grep -rn for netinet/in.h in your source base. Oh, and since arpa/inet.,h seems to work for all of us, you can go ahead and commit that :) Committing this fix. I don't have the time to go through all the modules at the moment, but if you mail me the filenames as you come across them I'll do my best CVS commit by fawcett: Fix include so that it builds on DragonflyBSD too Will forward port later. CCMAIL: 89577-done@bugs.kde.org M +2 -1 kio_ldap.cpp 1.41.2.3 --- kdebase/kioslave/ldap/kio_ldap.cpp #1.41.2.2:1.41.2.3 @@ -16,5 +16,6 @@ #include <stdlib.h> #include <netdb.h> -#include <netinet/in.h> +//#include <netinet/in.h> +#include <arpa/inet.h> #include <kdebug.h> Note: this fix has been reversed in the meantime. |