Преглед на файлове

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 години
родител
ревизия
50771a6b48
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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