X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fydirectenv.h;h=126b6ce79b1ed9b407fa43f747e6bafe9d8a47e1;hb=c1422c27f5f17c68acf261209292c7489085df6b;hp=b15147cad55fccf8e53578915d94b273070a0711;hpb=5cd357cc797ac725ca90b13cb7020ba4dd924f18;p=yaffs2.git 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)