From: Jeremy Harris Date: Sun, 11 Feb 2018 00:39:46 +0000 (+0000) Subject: Solaris 10 compatability, try two X-Git-Tag: exim-4_91_RC1~58 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0311ab059b86ac0b86df9dc35fafb0b21c540a6b;p=exim.git Solaris 10 compatability, try two --- diff --git a/src/OS/os.c-SunOS5 b/src/OS/os.c-SunOS5 index 69305e2cc..8ad8c9380 100644 --- a/src/OS/os.c-SunOS5 +++ b/src/OS/os.c-SunOS5 @@ -17,7 +17,7 @@ src/os.c file. */ A feature-test would be good. */ char * -strndup(const char * s, size_t n) +strndup(const char * s, unsigned long n) { char * dest; if (!(dest = malloc(n))) return NULL; diff --git a/src/OS/os.h-SunOS5 b/src/OS/os.h-SunOS5 index f51b009ef..113adc05f 100644 --- a/src/OS/os.h-SunOS5 +++ b/src/OS/os.h-SunOS5 @@ -48,6 +48,6 @@ a buffer */ # define MAX(a,b) (((a)>(b))?(a):(b)) #endif -extern char * strndup(const char *, size_t); +extern char * strndup(const char *, unsigned long); /* End */