Merge branch 'darwin-portability' into 'main'

Misc portability improvements to help bring wayland to darwin

See merge request wayland/wayland!290
This commit is contained in:
Jeremy Huddleston Sequoia 2023-06-22 21:43:05 +00:00
commit 29f820549f
14 changed files with 138 additions and 28 deletions

View file

@ -93,7 +93,7 @@ get_socket_name(void)
gettimeofday(&tv, NULL);
snprintf(retval, sizeof retval, "wayland-test-%d-%ld%ld",
getpid(), tv.tv_sec, tv.tv_usec);
(int)getpid(), (long)tv.tv_sec, (long)tv.tv_usec);
return retval;
}
@ -510,7 +510,7 @@ static const struct wl_registry_listener registry_listener =
NULL
};
struct client *client_connect()
struct client *client_connect(void)
{
struct wl_registry *reg;
struct client *c = calloc(1, sizeof *c);