gethostbyname conflicts

Bernd Prager bernd@prager.ws
Wed Jul 25 19:20:00 GMT 2012


All,

I am having troubles compiling a boost package due to conflicting 
declarations:

/usr/include/w32api/winsock2.h:635:33: error: declaration of C function 
‘int gethostname(char*, int)’ conflicts with
/usr/include/sys/unistd.h:238:6: error: previous declaration ‘int 
gethostname(char*, size_t)Â’ here

Can that get fixed?

Thank you,
-- Bernd

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list