mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Fix compilation on Cygwin.
This commit is contained in:
@ -55,7 +55,7 @@ deccopy(Numeric *src, Numeric *target)
|
||||
}
|
||||
|
||||
static char *
|
||||
strndup(char *str, int len)
|
||||
strndup(const char *str, size_t len)
|
||||
{
|
||||
int real_len = strlen(str);
|
||||
int use_len = (real_len > len) ? len : real_len;
|
||||
|
Reference in New Issue
Block a user