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:
parent
3ef518fde0
commit
1190e8018e
4 changed files with 12 additions and 1 deletions
4
compat.h
4
compat.h
|
@ -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) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue