#26064: ncftp fails to build: conflicting types for getdomainname -----------------------------------+---------------------------------------- Reporter: macports@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ncftp -----------------------------------+---------------------------------------- Comment(by michaelld@…): I'm attaching a patch that fixes it for me on x86_64, and should work on any Darwin platform (no matter 32 or 64 bit). The issue is that the function 'getdomainname' -always- takes an 'int' for its second argument (at least on Darwin), but the release code uses 'gethostname_size_t' which will end up being a 'size_t' type -- which is -not- an 'int' no matter how many bits you have. This patch replaces the 'gethostname_size_t' with 'int' in just the single file of issue: sio/DNSUtil.c . -- Ticket URL: <https://trac.macports.org/ticket/26064#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS