X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstring.h;h=2b7b454f61212beffd430effaf26fc799cb3c55b;hb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;hp=779a9e6f0e7560c7223c5649e8078ae5b5cc3bba;hpb=34e63086edddcae06d7c1a4fa84fec0861e50758;p=sliver-openvswitch.git diff --git a/lib/string.h b/lib/string.h index 779a9e6f0..2b7b454f6 100644 --- a/lib/string.h +++ b/lib/string.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2011 Nicira, Inc. * * 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 */