diff options
author | Scott Anderson <ascent12@hotmail.com> | 2018-02-19 14:26:40 +1300 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2018-02-19 14:26:40 +1300 |
commit | 86269052eb7be715eba274dffc30c77c11b8309c (patch) | |
tree | 8291d0ee15c75499ad884f629fd630c54f46b8ce /util/os-compatibility.c | |
parent | f27c0b44b882f7a837906e5b3376ad035cb51445 (diff) |
Explicitly export EFL symbols
Diffstat (limited to 'util/os-compatibility.c')
-rw-r--r-- | util/os-compatibility.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/os-compatibility.c b/util/os-compatibility.c index bd3067d2..0e95fdee 100644 --- a/util/os-compatibility.c +++ b/util/os-compatibility.c @@ -31,6 +31,7 @@ #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> +#include "util/defs.h" #include "util/os-compatibility.h" int os_fd_set_cloexec(int fd) { @@ -97,6 +98,11 @@ int create_tmpfile_cloexec(char *tmpname) * If posix_fallocate() is not supported, program may receive * SIGBUS on accessing mmap()'ed file contents instead. */ +/* + * XXX: This is not part of our public headers, but one of the examples uses it. + * We really should not export this. + */ +WLR_API int os_create_anonymous_file(off_t size) { static const char template[] = "/wlroots-shared-XXXXXX"; const char *path; |