From 0311ab059b86ac0b86df9dc35fafb0b21c540a6b Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 11 Feb 2018 00:39:46 +0000 Subject: [PATCH] Solaris 10 compatability, try two --- src/OS/os.c-SunOS5 | 2 +- src/OS/os.h-SunOS5 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.30.2