Browse Source

r9380@Kushana: nickm | 2006-10-24 21:25:07 -0400
Add string.h include to compat.h so that strlcpy() and strlcat() will always be defined after including compat.h. This should resolve warnings on centos.


svn:r8824

Nick Mathewson 18 years ago
parent
commit
50771a6b48
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/common/compat.h

+ 3 - 0
src/common/compat.h

@@ -29,6 +29,9 @@
 #ifdef HAVE_TIME_H
 #include <time.h>
 #endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
 #include <stdarg.h>
 
 #ifndef NULL_REP_IS_ZERO_BYTES