]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/time: add time.h for Alpine build 19863/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 15 Jan 2018 06:23:55 +0000 (14:23 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 15 Jan 2018 06:23:55 +0000 (14:23 +0800)
We create the Alpine apk package to view "https://github.com/ceph/ceph/blob/master/README.alpine.md",
at compile time found the following error:
"/src/common/ceph_time.h:209:4: error: invalid use of incomplete type 'struct ceph :: time_detail :: timeval'.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/common/ceph_time.h

index 1d6a6803eb5b2ebaa4e3403ff8bca977a0b4133b..b0b34f3dc23c031fcbc2fe440573040275a90d2d 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <chrono>
 #include <iostream>
+#include <sys/time.h>
 
 #include "include/assert.h"