mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
fixed android build error
This commit is contained in:
parent
f5349dcef9
commit
b3e5874631
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
#include <stdio.h>
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "HTTP.h"
|
#include "HTTP.h"
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
@ -67,7 +68,7 @@ namespace http {
|
|||||||
std::time_t now = std::time(nullptr);
|
std::time_t now = std::time(nullptr);
|
||||||
char buf[128];
|
char buf[128];
|
||||||
std::tm *tm = std::gmtime(&now);
|
std::tm *tm = std::gmtime(&now);
|
||||||
std::snprintf(buf, sizeof(buf), "%s, %02d %s %d %02d:%02d:%02d GMT",
|
snprintf(buf, sizeof(buf), "%s, %02d %s %d %02d:%02d:%02d GMT",
|
||||||
weekdays[tm->tm_wday], tm->tm_mday, months[tm->tm_mon],
|
weekdays[tm->tm_wday], tm->tm_mday, months[tm->tm_mon],
|
||||||
tm->tm_year + 1900, tm->tm_hour, tm->tm_min, tm->tm_sec
|
tm->tm_year + 1900, tm->tm_hour, tm->tm_min, tm->tm_sec
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user