[or-cvs] r8824: Add string.h include to compat.h so that strlcpy() and strlc (in tor/trunk: . src/common)

nickm at seul.org nickm at seul.org
Wed Oct 25 01:25:18 UTC 2006


Author: nickm
Date: 2006-10-24 21:25:17 -0400 (Tue, 24 Oct 2006)
New Revision: 8824

Modified:
   tor/trunk/
   tor/trunk/src/common/compat.h
Log:
 r9380 at 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.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r9380] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/common/compat.h
===================================================================
--- tor/trunk/src/common/compat.h	2006-10-24 23:23:47 UTC (rev 8823)
+++ tor/trunk/src/common/compat.h	2006-10-25 01:25:17 UTC (rev 8824)
@@ -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



More information about the tor-commits mailing list