Corinna Vinschen wrote:
On Jun 16 18:27, Christian Franke wrote:
Found during an experimental build of busybox:
The sethostname() prototype in /usr/include/sys/unistd.h is enabled also on
Cygwin.
It should be disabled because Cygwin does not provide this function.
Christian
What about implementing sethostname instead?
extern "C" int
sethostname (const char *name, size_t len)
...
I didn't consider this as an alternative because I guessed that it is
intentional that sethostname is missing.
(it is not a typical that someone wants to use Cygwin to change the name
of a Windows machine)
Christian