]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/denc: include used header 42233/head
authorKefu Chai <kchai@redhat.com>
Mon, 12 Apr 2021 09:43:13 +0000 (17:43 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 7 Jul 2021 20:45:26 +0000 (22:45 +0200)
commit99613347f6af3d72bd3d6103ab1f97ea85339a1e
treecddeae88079cd3076c69f11160b5ceae3c12520e
parent99ce165dd3aba44768d0b8fe988e1304e4edaa88
include/denc: include used header

to address the FTBFS like:

/home/kchai/ceph/src/include/denc.h: In member function ‘void DencDumper<T>::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 <kchai@redhat.com>
(cherry picked from commit 03770f75562812c683ff1503d2032dcd66d83289)
src/include/denc.h