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
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
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
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