wl/wayland/0001-cursor-privsymbols.patch
$ cat 0001-cursor-privsymbols.patch
diff --git a/cursor/os-compatibility.h b/cursor/os-compatibility.h
--- a/cursor/os-compatibility.h
+++ b/cursor/os-compatibility.h
@@ -29,9 +29,9 @@
#include <sys/types.h>
int
-os_create_anonymous_file(off_t size);
+wayland_cursor_os_create_anonymous_file(off_t size);
int
-os_resize_anonymous_file(int fd, off_t size);
+wayland_cursor_os_resize_anonymous_file(int fd, off_t size);
#endif /* OS_COMPATIBILITY_H */
diff --git a/cursor/os-compatibility.c b/cursor/os-compatibility.c
--- a/cursor/os-compatibility.c
+++ b/cursor/os-compatibility.c
@@ -120,7 +120,7 @@
* XDG_RUNTIME_DIR.
*/
int
-os_create_anonymous_file(off_t size)
+wayland_cursor_os_create_anonymous_file(off_t size)
{
static const char template[] = "/wayland-cursor-shared-XXXXXX";
const char *path;
@@ -176,7 +176,7 @@
return -1;
}
- if (os_resize_anonymous_file(fd, size) < 0) {
+ if (wayland_cursor_os_resize_anonymous_file(fd, size) < 0) {
close(fd);
return -1;
}
@@ -185,7 +185,7 @@
}
int
-os_resize_anonymous_file(int fd, off_t size)
+wayland_cursor_os_resize_anonymous_file(int fd, off_t size)
{
#ifdef HAVE_POSIX_FALLOCATE
sigset_t mask;
diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c
--- a/cursor/wayland-cursor.c
+++ b/cursor/wayland-cursor.c
@@ -58,7 +58,7 @@
if (!pool)
return NULL;
- pool->fd = os_create_anonymous_file(size);
+ pool->fd = wayland_cursor_os_create_anonymous_file(size);
if (pool->fd < 0)
goto err_free;
@@ -89,7 +89,7 @@
static int
shm_pool_resize(struct shm_pool *pool, int size)
{
- if (os_resize_anonymous_file(pool->fd, size) < 0)
+ if (wayland_cursor_os_resize_anonymous_file(pool->fd, size) < 0)
return 0;
wl_shm_pool_resize(pool->pool, size);
