xdb.c: 在函数‘xdb_open’中: xdb.c:171:21: 错误:‘LOCK_EX’未声明(在此函数内第一次使用) xdb.c:171:21: 附注:每个未声明的标识符在其出现的函数内只报告一次 xdb.c: 在函数‘xdb_create’中: xdb.c:213:20: 错误:‘LOCK_EX’未声明(在此函...
...o .libs/xdb.o xdb.c: In function ‘xdb_open’: xdb.c:171:21: error: ‘LOCK_EX’ undeclared (first use in this function) xdb.c:171:21: note: each undeclared identifier is reported only once for each function it appears in xdb.c: In function ‘xdb_create’: xdb.c:213:20: error: ‘LOCK_EX...
什么平台啊,大概不兼容 LOCK_EX 的定义位置。请手动修改 libscws/xdb.c diff --git a/libscws/xdb.c b/libscws/xdb.c index ce6737e..71273bd 100644 --- a/libscws/xdb.c +++ b/libscws/xdb.c @@ -25,6 +25,10 @@ #include #include +#ifdef HAVE_FLOCK +# include +#endif + #ifdef HA...