]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: Extend win32 compatbility layer
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 19 Dec 2019 11:30:05 +0000 (11:30 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 12 Oct 2020 09:28:42 +0000 (09:28 +0000)
commit78bbf804e98f238e19793028996d86f3e38ab3c2
tree60e2d4b6f6f11f80658a3be041ff13ccab222e08
parenta333b8db2c7abdd23f60e159a1f06cd3c37439eb
common: Extend win32 compatbility layer

For Windows compatibility, we're defining the following:

* random
* get_page_size
* setenv
* unsetenv
* _putenv_s - defined by Windows headers but not exposed by Mingw
              when _POSIX is set

* EDQUOT
* uint

While at it, we're going to avoid importing sys/resourcectl.h on
Windows.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/compat.cc
src/include/compat.h
src/include/coredumpctl.h