소스 검색

timegm api absent in AIX (#2336)

Prajwal B Mehendarkar 1 주 전
부모
커밋
f73e694f0c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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