https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2eb314956587a6fe9c3316b615a95e06a43132b7
commit 2eb314956587a6fe9c3316b615a95e06a43132b7 Author: Timo Kreuzer <timo.kreu...@reactos.org> AuthorDate: Wed Nov 27 13:58:34 2024 +0200 Commit: Timo Kreuzer <timo.kreu...@reactos.org> CommitDate: Thu Jan 16 14:18:53 2025 +0200 [UCRT] Make includes unix compatible --- sdk/lib/ucrt/filesystem/chmod.cpp | 2 +- sdk/lib/ucrt/filesystem/wchmod.cpp | 2 +- sdk/lib/ucrt/lowio/locking.cpp | 4 ++-- sdk/lib/ucrt/lowio/umask.cpp | 2 +- sdk/lib/ucrt/time/clock.cpp | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/lib/ucrt/filesystem/chmod.cpp b/sdk/lib/ucrt/filesystem/chmod.cpp index 63832ea2823..7aa34225374 100644 --- a/sdk/lib/ucrt/filesystem/chmod.cpp +++ b/sdk/lib/ucrt/filesystem/chmod.cpp @@ -7,7 +7,7 @@ // #include <corecrt_internal.h> #include <io.h> -#include <sys\stat.h> +#include <sys/stat.h> #include <corecrt_internal_win32_buffer.h> // Changes the mode of a file. The only supported mode bit is _S_IWRITE, which diff --git a/sdk/lib/ucrt/filesystem/wchmod.cpp b/sdk/lib/ucrt/filesystem/wchmod.cpp index 181afed05e4..24590200c71 100644 --- a/sdk/lib/ucrt/filesystem/wchmod.cpp +++ b/sdk/lib/ucrt/filesystem/wchmod.cpp @@ -7,7 +7,7 @@ // #include <corecrt_internal.h> #include <io.h> -#include <sys\stat.h> +#include <sys/stat.h> diff --git a/sdk/lib/ucrt/lowio/locking.cpp b/sdk/lib/ucrt/lowio/locking.cpp index 8f7dda92b51..ab2d2e3106f 100644 --- a/sdk/lib/ucrt/lowio/locking.cpp +++ b/sdk/lib/ucrt/lowio/locking.cpp @@ -6,7 +6,7 @@ // Defines _locking(), which locks and unlocks regions of a file. // #include <corecrt_internal_lowio.h> -#include <sys\locking.h> +#include <sys/locking.h> @@ -106,7 +106,7 @@ extern "C" int __cdecl _locking(int const fh, int const locking_mode, long const { errno = EBADF; _doserrno = 0; - _ASSERTE(("Invalid file descriptor. File possibly closed by a different thread",0)); + _ASSERTE(("Invalid file descriptor. File possibly closed by a different thread",0)); __leave; } diff --git a/sdk/lib/ucrt/lowio/umask.cpp b/sdk/lib/ucrt/lowio/umask.cpp index ad0de502ccc..de90e192331 100644 --- a/sdk/lib/ucrt/lowio/umask.cpp +++ b/sdk/lib/ucrt/lowio/umask.cpp @@ -10,7 +10,7 @@ *******************************************************************************/ #include <corecrt_internal_lowio.h> -#include <sys\stat.h> +#include <sys/stat.h> extern "C" { int _umaskval = 0; } diff --git a/sdk/lib/ucrt/time/clock.cpp b/sdk/lib/ucrt/time/clock.cpp index 0c88322d562..7ff8a04e8fb 100644 --- a/sdk/lib/ucrt/time/clock.cpp +++ b/sdk/lib/ucrt/time/clock.cpp @@ -7,8 +7,8 @@ // process started execution. // #include <corecrt_internal_time.h> -#include <sys\timeb.h> -#include <sys\types.h> +#include <sys/timeb.h> +#include <sys/types.h> @@ -51,7 +51,7 @@ extern "C" int __cdecl __acrt_initialize_clock() !QueryPerformanceCounter(&local_start_count) || local_frequency.QuadPart == 0) { - source_frequency = -1; + source_frequency = -1; start_count = -1; return 0; }