chiark / gitweb /
cgi-fcgi-interp: Temporarily disable compilation
[chiark-utils.git] / cprogs / cgi-fcgi-interp.c
index 1d88f50294997bc5cced3d4c3abc839bfa29cb79..44035861048c5c5f64094c7fa19ce96ac1e2763d 100644 (file)
@@ -308,7 +308,11 @@ static void find_socket_path(void) {
 #endif /*timespeccmp*/
 
 static bool stab_isnewer(const struct stat *a, const struct stat *b) {
-  return 0;
+#ifdef st_mtime
+  return timespeccmp(&a->st_mtim, &b->st_mtim, >);
+#else
+  return a->st_mtime > &b->st_mtime;
+#endif
 }
 
 static bool check_garbage(void) {