diff --git a/libdecor/src/os-compatibility.c b/libdecor/src/os-compatibility.c index 8287da0e6..23766473d 100644 --- a/libdecor/src/os-compatibility.c +++ b/libdecor/src/os-compatibility.c @@ -148,7 +148,7 @@ os_resize_anonymous_file(int fd, off_t size) * XDG_RUNTIME_DIR. */ int -os_create_anonymous_file(off_t size) +libdecor_os_create_anonymous_file(off_t size) { static const char template[] = "/libdecor-shared-XXXXXX"; const char *path; diff --git a/libdecor/src/os-compatibility.h b/libdecor/src/os-compatibility.h index d0e69acd9..6ce49d01c 100644 --- a/libdecor/src/os-compatibility.h +++ b/libdecor/src/os-compatibility.h @@ -29,6 +29,6 @@ #include int -os_create_anonymous_file(off_t size); +libdecor_os_create_anonymous_file(off_t size); #endif /* OS_COMPATIBILITY_H */ diff --git a/libdecor/src/plugins/cairo/libdecor-cairo.c b/libdecor/src/plugins/cairo/libdecor-cairo.c index 765800df6..30f6f8720 100644 --- a/libdecor/src/plugins/cairo/libdecor-cairo.c +++ b/libdecor/src/plugins/cairo/libdecor-cairo.c @@ -597,7 +597,7 @@ create_shm_buffer(struct libdecor_plugin_cairo *plugin_cairo, stride = buffer_width * 4; size = stride * buffer_height; - fd = os_create_anonymous_file(size); + fd = libdecor_os_create_anonymous_file(size); if (fd < 0) { fprintf(stderr, "creating a buffer file for %d B failed: %s\n", size, strerror(errno)); diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c index f768db6b5..ed4a84264 100644 --- a/libdecor/src/plugins/gtk/libdecor-gtk.c +++ b/libdecor/src/plugins/gtk/libdecor-gtk.c @@ -612,7 +612,7 @@ create_shm_buffer(struct libdecor_plugin_gtk *plugin_gtk, stride = buffer_width * 4; size = stride * buffer_height; - fd = os_create_anonymous_file(size); + fd = libdecor_os_create_anonymous_file(size); if (fd < 0) { fprintf(stderr, "creating a buffer file for %d B failed: %s\n", size, strerror(errno));