X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2FOS%2Fos.c-SunOS5;h=16248695812c452bdfe999ee637359be67e792b9;hb=a06afb97d53eb100c7f1b5b00da746d071d52415;hp=69305e2cc72459296fabe22bffd924901b55f47f;hpb=d8710e24c47bf5d7c3dc3a77127d08e4568dc335;p=exim.git diff --git a/src/OS/os.c-SunOS5 b/src/OS/os.c-SunOS5 index 69305e2cc..162486958 100644 --- a/src/OS/os.c-SunOS5 +++ b/src/OS/os.c-SunOS5 @@ -3,7 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 2016 */ -/* Copyright (c) Jeremy Harris 2018 */ +/* Copyright (c) Jeremy Harris 2016 */ /* See the file NOTICE for conditions of use and distribution. */ /* Solaris-specific code. This is concatenated onto the generic @@ -13,15 +13,4 @@ src/os.c file. */ # include "setenv.c" #endif -/* This is missing in Solaris 10, present in Solaris 11. -A feature-test would be good. */ - -char * -strndup(const char * s, size_t n) -{ -char * dest; -if (!(dest = malloc(n))) return NULL; -return strncpy(dest, s, n); -} - /* End of os.c-SunOS5 */