From kde-bugs-dist Tue Sep 30 12:09:40 2003 From: Torsten Kasch Date: Tue, 30 Sep 2003 12:09:40 +0000 To: kde-bugs-dist Subject: [Bug 65232] KMail from kdepim-3.2.0-alpha2 fails to compile on X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=106492384417568 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=65232 ------- Additional Comments From tk@Genetik.Uni-Bielefeld.DE 2003-09-30 14:09 ------- Created an attachment (id=2648) --> (http://bugs.kde.org/attachment.cgi?id=2648&action=view) patch for kdepim/kmail/kmmsgbase.cpp According to swab(2) (if you neglect the obvious mistake in there ;-) there are two variants of the swab() function: SYNOPSIS Default #include void swab(const void *src, char *dest, ssize_t nbytes); XPG4, SUS, SUSv2 #include void swab(const void *src, void *dest, ssize_t nbytes); The latter one is only available when _XOPEN_SOURCE is #defined and if _XOPEN_VERSION - 0 >= 4. Since I'm not sure about the implications of defining these symbols, the attached patch introduces an appropriate cast for the first one (which takes "char *" as arguments).