summaryrefslogtreecommitdiff
path: root/lib/rb
diff options
context:
space:
mode:
authorJake Farrell <jfarrell@apache.org>2011-11-06 19:58:32 +0000
committerJake Farrell <jfarrell@apache.org>2011-11-06 19:58:32 +0000
commit9e7a88267c1a45d06ca3f332f683e2bbfa4eb9a0 (patch)
tree22d1f77017ffbc217f7acf9396259757a020439b /lib/rb
parentd5df77a90626ffddaa00b351eda4dbf0810c1836 (diff)
downloadthrift-9e7a88267c1a45d06ca3f332f683e2bbfa4eb9a0.tar.gz
Thrift-1382: Bundle install doesnot work because thrift crashes
Client: ruby Fixing strlcpy header. git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198543 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'lib/rb')
-rw-r--r--lib/rb/ext/strlcpy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rb/ext/strlcpy.h b/lib/rb/ext/strlcpy.h
index b37f6f47e..c6f508f13 100644
--- a/lib/rb/ext/strlcpy.h
+++ b/lib/rb/ext/strlcpy.h
@@ -18,11 +18,12 @@
*/
+#include <sys/types.h>
#include <string.h>
#ifndef HAVE_STRLCPY
size_t
-strlcpy (char *dst, const char *src, size_t dst_sz)
+strlcpy (char *dst, const char *src, size_t dst_sz);
#else
extern size_t strlcpy(char *, const char *, size_t);
#endif