aboutsummaryrefslogtreecommitdiffstats
path: root/slowcgi.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-05-24 13:51:13 +0200
committerWynn Wolf Arbor2020-05-24 14:05:54 +0200
commit0822df4d5f9d4313c3dbfb54e9e4c5624fb705a5 (patch)
treed7f010db57791cd6a0b511afa08e1ce417e57965 /slowcgi.c
parent53b11e33a3c95301a2849410a9d01ef1d44d2038 (diff)
downloadslowcgi-0822df4d5f9d4313c3dbfb54e9e4c5624fb705a5.tar.gz
Add strlcpy(3) from OpenBSD
The original file location in the OpenBSD tree - lib/libc/string/strlcpy.c
Diffstat (limited to 'slowcgi.c')
-rw-r--r--slowcgi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/slowcgi.c b/slowcgi.c
index 660f95e..a422918 100644
--- a/slowcgi.c
+++ b/slowcgi.c
@@ -39,6 +39,12 @@
#include <syslog.h>
#include <unistd.h>
+#ifdef strlcpy
+#define HAVE_STRLCPY
+#else
+size_t strlcpy(char *, const char *, size_t);
+#endif
+
#ifndef __packed
#define __packed __attribute__((packed))
#endif