ofp-util: Work on decoding OF1.1 flow_mods.
[openvswitch] / lib / string.h
index 779a9e6f0e7560c7223c5649e8078ae5b5cc3bba..2b7b454f61212beffd430effaf26fc799cb3c55b 100644 (file)
@@ -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.
 #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 */