在编译 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