From: Willem Jan Withagen Date: Tue, 29 Oct 2019 08:32:14 +0000 (+0100) Subject: common: fix missing include X-Git-Tag: v15.1.0~1065^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2a71a514c67470635844067e483ad10cb737caef;p=ceph.git common: fix missing include On FreeBSD snprinf() lives in . /home/jenkins/workspace/ceph-master36/src/common/compat.cc:202:5: error: use of undeclared identifier 'snprintf' snprintf(buf, buflen, "Unknown error %d", errnum); ^ 1 error generated. Signed-off-by: Willem Jan Withagen --- diff --git a/src/common/compat.cc b/src/common/compat.cc index bea5dba96e3..a947b5bddb6 100644 --- a/src/common/compat.cc +++ b/src/common/compat.cc @@ -13,6 +13,8 @@ * */ +#include + #include #include #include