X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstring.h;h=5e372bbc165f50f500e08f8d75a9675bf78ea351;hb=73dbf4abd17b6b87fdb5bf22aec7bb3d381dce05;hp=779a9e6f0e7560c7223c5649e8078ae5b5cc3bba;hpb=34e63086edddcae06d7c1a4fa84fec0861e50758;p=openvswitch diff --git a/lib/string.h b/lib/string.h index 779a9e6f..5e372bbc 100644 --- a/lib/string.h +++ b/lib/string.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,4 +31,10 @@ #undef strtok_r #endif +#ifndef HAVE_STRNLEN +#undef strnlen +#define strnlen rpl_strnlen +size_t strnlen(const char *, size_t maxlen); +#endif + #endif /* string.h wrapper */