mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
fixed compile error on systems without strndup()
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1092 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -42,6 +42,7 @@ typedef struct {
|
||||
|
||||
/* strndup() may be not available on several platforms */
|
||||
#ifndef HAVE_STRNDUP
|
||||
#include <string.h>
|
||||
char *strndup(const char *source, size_t len);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user