summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-09 16:29:44 -0400
committerJune McEnroe <june@causal.agency>2020-07-09 16:31:00 -0400
commit1e01eaf9031fd7d28dc77e35122e3976c02239a2 (patch)
tree7ffeedcdd4e24641c7bcd1041809a1ddf8c6c5f3
parentRefactor HTML generation somewhat (diff)
downloadscooper-1e01eaf9031fd7d28dc77e35122e3976c02239a2.tar.gz
scooper-1e01eaf9031fd7d28dc77e35122e3976c02239a2.zip
Add compatibility for kcgi <0.12
Diffstat (limited to '')
-rw-r--r--scooper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scooper.c b/scooper.c
index 99e7a05..17c0ebc 100644
--- a/scooper.c
+++ b/scooper.c
@@ -28,6 +28,10 @@
 #include <kcgihtml.h>
 #include <sqlite3.h>
 
+#if KCGI_VMAJOR == 0 && KCGI_VMINOR < 12
+#define khttp_urlpart(...) kutil_urlpart(req, __VA_ARGS__)
+#endif
+
 #define SQL(...) #__VA_ARGS__
 
 enum { DatabaseVersion = 4 };