1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

Fix build on FreeBSD

The error message is as follows:
/usr/ports/irc/weechat/work/weechat-1.3/src/plugins/javascript/weechat-js-api.cpp:4206:16: error: use of undeclared identifier
      'localtime'
    date_tmp = localtime (&time);
               ^
/usr/ports/irc/weechat/work/weechat-1.3/src/plugins/javascript/weechat-js-api.cpp:4208:9: error: use of undeclared identifier
      'strftime'
        strftime (timebuffer, sizeof (timebuffer), "%F %T", date_tmp);
        ^
This commit is contained in:
Sunpoet Po-Chuan Hsieh
2015-12-20 05:36:00 +08:00
parent 213db71702
commit 6c3b940dc4
@@ -25,6 +25,7 @@
#include <cstdlib>
#include <cstring>
#include <string>
#include <time.h>
extern "C"
{