mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Compat code for strndup and strnlen.
This commit is contained in:
10
compat.h
10
compat.h
@ -247,6 +247,16 @@ size_t strlcpy(char *, const char *, size_t);
|
||||
size_t strlcat(char *, const char *, size_t);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNLEN
|
||||
/* strnlen.c */
|
||||
size_t strnlen(const char *, size_t);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNDUP
|
||||
/* strndup.c */
|
||||
char *strndup(const char *, size_t);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_DAEMON
|
||||
/* daemon.c */
|
||||
int daemon(int, int);
|
||||
|
Reference in New Issue
Block a user