summaryrefslogtreecommitdiff
path: root/src/htsweb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/htsweb.c')
-rw-r--r--src/htsweb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/htsweb.c b/src/htsweb.c
index 82f4c79..6e3f4a5 100644
--- a/src/htsweb.c
+++ b/src/htsweb.c
@@ -178,6 +178,14 @@ int main(int argc, char *argv[]) {
}
smallserver_setkey("HTTRACK_WEB", HTTRACK_WEB);
+ /* Check version compatibility */
+ if (hts_sizeof_opt() != sizeof(httrackp)) {
+ fprintf(stderr,
+ "** CRITICAL: incompatible current httrack library version %s, expected version %s",
+ hts_version(), HTTRACK_VERSIONID);
+ smallserver_setkey("HTTRACK_INCOMPATIBLE_VERSIONID", hts_version());
+ }
+
/* protected session-id */
{
char buff[1024];