--- htags/htags~.c	2007-08-11 09:18:06 +1000
+++ htags/htags.c	2007-08-17 15:04:28 +1000
@@ -437,8 +437,15 @@
 	strbuf_reset(sb);
 	strbuf_sprintf(sb, "%s/gtags/%s.tmpl", datadir, file);
 	ip = fopen(strbuf_value(sb), "r");
-	if (!ip)
-		die("skeleton file '%s' not found.", strbuf_value(sb));
+	if (!ip) {
+#ifdef __DJGPP__
+		strbuf_reset(sb);
+		strbuf_sprintf(sb, "%s/gtags/%s", datadir, file);
+		ip = fopen(strbuf_value(sb), "r");
+		if (!ip)
+#endif
+			die("skeleton file '%s' not found.", strbuf_value(sb));
+	}
 	op = fopen(makepath(dist, file, NULL), "w");
 	if (!op)
 		die("cannot create file '%s'.", file);
