Skip to content

Compilation of version 2.6 windows port with MinGW64 UCRT environment. #540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Oct 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
822111e
[PBCKP-232] remove 9.5-9.6 support, part 1
kulaginm Jul 19, 2022
ae275dc
[PBCKP-232] remove 9.5-9.6 support, part 2
kulaginm Jul 19, 2022
5ed469d
[PBCKP-232] remove depricated options (master-db, master-host, master…
kulaginm Jul 20, 2022
a880b91
[PBCKP-232] makefile simplification
kulaginm Jul 20, 2022
249876a
[PBCKP-232] remove deprecated options (master-db, master-host, master…
kulaginm Aug 26, 2022
14781dd
Merge branch 'REL_2_6' into release_2_6-pbckp-232
kulaginm Aug 26, 2022
dcf52ee
[PBCKP-230] remove instr_time.h from borrowed filelist
kulaginm Aug 26, 2022
491452a
[PBCKP-256] remove src/backend/utils/hash/pg_crc.c borrowing
kulaginm Aug 27, 2022
f6a8381
Merge branch 'REL_2_6' into REL_2_6-PBCKP-256
kulaginm Sep 1, 2022
4b08603
[PBCKP-245] fu_utils: compilable under MinGW
funny-falcon Sep 12, 2022
5e1dd7e
[PBCKP-245] don't include libpq-int.h
funny-falcon Aug 15, 2022
3fa33c8
[PBCKP-245] mingw: no need to define custom sleep/usleep
funny-falcon Sep 12, 2022
2fd4757
[PBCKP-248] a bit more accurate ifdef
funny-falcon Sep 18, 2022
e180a36
[PBCKP-248] Use native mingw pthread
funny-falcon Sep 18, 2022
3acd1a7
[PBCKP-245] don't include sys/stat.h so often
funny-falcon Sep 13, 2022
ca6e394
[PBCKP-245] make Makefile more portable
funny-falcon Sep 13, 2022
085b99f
[PBCKP-245] more mingw compatibility
funny-falcon Sep 15, 2022
0e85c52
[PBCKP-245] mingw: ucrt strftime is good enough
funny-falcon Sep 19, 2022
0e0027b
[PBCKP-245] fix EACCES usage
funny-falcon Sep 20, 2022
ccee8ab
Merge branch 'REL_2_6-PBCKP-256' into REL_2_6-PBCKP-245-mingw
funny-falcon Oct 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[PBCKP-245] mingw: no need to define custom sleep/usleep
Mingw defines usable them.
  • Loading branch information
funny-falcon committed Sep 20, 2022
commit 3fa33c83dd05d6f166082d175f8a0f522009f66f
14 changes: 0 additions & 14 deletions src/utils/pgut.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,20 +1061,6 @@ init_cancel_handler(void)
SetConsoleCtrlHandler(consoleHandler, TRUE);
}

int
sleep(unsigned int seconds)
{
Sleep(seconds * 1000);
return 0;
}

int
usleep(unsigned int usec)
{
Sleep((usec + 999) / 1000); /* rounded up */
return 0;
}

#undef select
static int
select_win32(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timeval * timeout)
Expand Down
5 changes: 0 additions & 5 deletions src/utils/pgut.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,4 @@ extern char *pgut_str_strip_trailing_filename(const char *filepath, const char *
extern int wait_for_socket(int sock, struct timeval *timeout);
extern int wait_for_sockets(int nfds, fd_set *fds, struct timeval *timeout);

#ifdef WIN32
extern int sleep(unsigned int seconds);
extern int usleep(unsigned int usec);
#endif

#endif /* PGUT_H */