From: Kefu Chai Date: Mon, 12 Apr 2021 09:43:13 +0000 (+0800) Subject: include/denc: include used header X-Git-Tag: v16.2.6~149^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=99613347f6af3d72bd3d6103ab1f97ea85339a1e;p=ceph.git include/denc: include used header to address the FTBFS like: /home/kchai/ceph/src/include/denc.h: In member function ‘void DencDumper::dump() const’: /home/kchai/ceph/src/include/denc.h:121:60: error: ‘O_BINARY’ was not declared in this scope int fd = ::open(fn, O_WRONLY|O_TRUNC|O_CREAT|O_CLOEXEC|O_BINARY, 0644); ^~~~~~~~ /home/kchai/ceph/src/include/denc.h:121:60: note: the macro ‘O_BINARY’ had not yet been defined In file included from /home/kchai/ceph/src/include/statlite.h:14, from /home/kchai/ceph/src/include/types.h:41, from /home/kchai/ceph/src/auth/Crypto.h:19, from /home/kchai/ceph/src/auth/Crypto.cc:21: Signed-off-by: Kefu Chai (cherry picked from commit 03770f75562812c683ff1503d2032dcd66d83289) --- diff --git a/src/include/denc.h b/src/include/denc.h index 266121bd20cd..10fa8d0c8712 100644 --- a/src/include/denc.h +++ b/src/include/denc.h @@ -39,6 +39,7 @@ #include #include +#include "include/compat.h" #include "include/intarith.h" #include "include/int_types.h" #include "include/scope_guard.h"