1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-15 15:43:24 +00:00

Substitute strndup() when it is missing

This commit is contained in:
Gerhard Rieger 2020-12-28 00:41:41 +01:00
parent 3ef518fde0
commit 1190e8018e
4 changed files with 12 additions and 1 deletions

View file

@ -704,4 +704,8 @@ typedef int sig_atomic_t;
extern const char *hstrerror(int);
#endif
#if !HAVE_PROTOTYPE_LIB_strndup
extern char *strndup (const char *s, size_t n);
#endif
#endif /* !defined(__compat_h_included) */