summary refs log tree commit diff
diff options
context:
space:
mode:
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 };