X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fydirectenv.h;fp=direct%2Fydirectenv.h;h=126b6ce79b1ed9b407fa43f747e6bafe9d8a47e1;hp=b15147cad55fccf8e53578915d94b273070a0711;hb=c1422c27f5f17c68acf261209292c7489085df6b;hpb=b6a3ae56bbcd59fdc1769f69f445a5e43f8297bc diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index b15147c..126b6ce 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -39,6 +39,9 @@ void yaffs_bug_fn(const char *file_name, int line_no); #define Y_LOFF_T loff_t #endif +/* Some RTOSs (eg. VxWorks) need strnlen. */ +size_t strnlen(const char *s, size_t maxlen); + #define yaffs_strcat(a, b) strcat(a, b) #define yaffs_strcpy(a, b) strcpy(a, b) #define yaffs_strncpy(a, b, c) strncpy(a, b, c)