在編譯 libevent-1.2 源碼時, make 出錯:memcached
event.c:157:20: error: 'CLOCK_MONOTONIC' undeclared (first use in this function) if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1) ^
#include <time.h>
:/* 直接在event.c文件最上面include time.h 就能夠了. /
#include <time.h>
/ 如下是源碼, 不用管! */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endifthis
CADN ACM_devil 安裝memcached (他沒說要 include 什麼...).net