summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-25 01:25:17 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-25 01:25:17 +0000
commit50771a6b48052f9b555c33a80f49ff9e7e926121 (patch)
treec09c1433bfbcb1722becfd0d81db9c30afc8a4aa
parent834d935e6e276f223f090f0ca567a97c1b4d7b56 (diff)
downloadtor-50771a6b48052f9b555c33a80f49ff9e7e926121.tar.gz
tor-50771a6b48052f9b555c33a80f49ff9e7e926121.zip
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
-rw-r--r--src/common/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 79825fc057..536fd052c6 100644
--- a/src/common/compat.h
+++ b/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