HomePhabricator

misc: Add strndup implementation if not provides by the OS

Authored by asn on Aug 29 2018, 6:41 PM.

Description

misc: Add strndup implementation if not provides by the OS

Fixes T112

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 247983e9820fd264cb5a59c14cc12846c028bd08)

Details

Committed
asnOct 17 2018, 8:23 AM
Parents
rLIBSSHc20b360c96a0: Bump version to 0.7.6
Branches
Unknown
Tags
Unknown
Tasks
T112: 0.7.6 strndup issue with visual studio

Event Timeline

tbeu added a subscriber: tbeu.Oct 18 2018, 10:30 AM
tbeu added inline comments.
/include/libssh/priv.h
47

size_t is not yet defined (at least not in the mingw env I use). Include stddef.h before.