]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: fix missing <cstdio> include 31209/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 29 Oct 2019 08:32:14 +0000 (09:32 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 29 Oct 2019 11:29:13 +0000 (12:29 +0100)
On FreeBSD snprinf() lives in <cstdio>.

/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 <wjw@digiware.nl>
src/common/compat.cc

index bea5dba96e35421b8d462f2ac2af32b8878eef1a..a947b5bddb6f279c37a6e9d18201b8c7a72e728e 100644 (file)
@@ -13,6 +13,8 @@
  *
  */
 
+#include <cstdio>
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdint.h>