]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: use include/types.h early on, otherwise Clang will error. 22493/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sun, 10 Jun 2018 13:25:46 +0000 (15:25 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Sun, 10 Jun 2018 13:28:59 +0000 (15:28 +0200)
commit53f7ed163ec06830f29788fff4a8cb9682231cf8
tree8261dcccdb6ed168f592e5b9c255fa4549036d48
parent44d070637768d60a622acd17d8954a5c7a3e945d
common: use include/types.h early on, otherwise Clang will error.

This is due that FreeBSD does not have loff_t as type.
And with the wrong order of includes the standard linux typedef
is included and used.

In file included from /home/wjw/wip/src/common/buffer.cc:21:
/home/wjw/wip/src/include/buffer_raw.h:92:41: error: unknown type name 'loff_t'; did you mean 'off_t'?
    virtual int zero_copy_to_fd(int fd, loff_t *offset) {
                                        ^~~~~~
                                        off_t
/usr/include/sys/uio.h:49:17: note: 'off_t' declared here
typedef __off_t off_t;
                ^
1 error generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/buffer.cc