Procházet zdrojové kódy

timegm api absent in AIX (#2336)

Prajwal B Mehendarkar před 1 týdnem
rodič
revize
f73e694f0c
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      httplib.h

+ 2 - 0
httplib.h

@@ -3547,6 +3547,8 @@ inline time_t parse_http_date(const std::string &date_str) {
 
 #ifdef _WIN32
   return _mkgmtime(&tm_buf);
+#elif defined _AIX
+  return mktime(&tm_buf);
 #else
   return timegm(&tm_buf);
 #endif