Re: missing strcpy prototype in gethostname module

2008-01-17 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> @@ -21,6 +21,8 @@ >> >> #ifdef HAVE_UNAME >> # include >> +#else >> +# include >> #endif >> >> /* Put up to LEN chars of the host name into NAME. > > While at it, you could make the patch complete: The function strncpy

Re: missing strcpy prototype in gethostname module

2008-01-16 Thread Bruno Haible
Simon Josefsson wrote: > @@ -21,6 +21,8 @@ > > #ifdef HAVE_UNAME > # include > +#else > +# include > #endif > > /* Put up to LEN chars of the host name into NAME. While at it, you could make the patch complete: The function strncpy also needs to be declared somewhere. Bruno

Re: missing strcpy prototype in gethostname module

2008-01-16 Thread Jim Meyering
Simon Josefsson <[EMAIL PROTECTED]> wrote: > Shishi on mingw: > > ../../../src/shishi-0.0.34/gl/gethostname.c: In function 'gethostname': > ../../../src/shishi-0.0.34/gl/gethostname.c:48: warning: implicit declaration > of function 'strcpy' > ../../../src/shishi-0.0.34/gl/gethostname.c:48: warning

missing strcpy prototype in gethostname module

2008-01-16 Thread Simon Josefsson
Shishi on mingw: ../../../src/shishi-0.0.34/gl/gethostname.c: In function 'gethostname': ../../../src/shishi-0.0.34/gl/gethostname.c:48: warning: implicit declaration of function 'strcpy' ../../../src/shishi-0.0.34/gl/gethostname.c:48: warning: incompatible implicit declaration of built-in funct