* libGL, libEGL, libglesv2, libglapi, and gbm have been moved into mesa-libs, graphics/dri has been renamed to mesa-dri, and USE_GL has been adjusted * mesa-libs has a new WAYLAND option that enables platform support in libEGL * mesa-dri now depends on graphics/s2tc for compressed texture support [1] * re-remove obsolete dependency on makedepends [2] * correct sed fix backported from 17.1 [3] PR: 218799 (exp-run), 212762 [1], 218552 [2], 218562 [3] Submitted by: dbn [1], jbeich [2,3] Reported by: afiskon@devzen.ru [1] Reviewed by: kwm, johalun0@gmail.com Approved by: portmgr, swills (mentor) Differential Revision: https://reviews.freebsd.org/D10448
29 lines
953 B
C
29 lines
953 B
C
--- tests/connection-test.c.orig 2017-02-07 22:59:06 UTC
|
|
+++ tests/connection-test.c
|
|
@@ -37,6 +37,7 @@
|
|
#include <sys/stat.h>
|
|
#include <poll.h>
|
|
|
|
+#include "wayland-os.h"
|
|
#include "wayland-private.h"
|
|
#include "test-runner.h"
|
|
#include "test-compositor.h"
|
|
@@ -48,7 +49,7 @@ setup(int *s)
|
|
{
|
|
struct wl_connection *connection;
|
|
|
|
- assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0);
|
|
+ assert(wl_os_socketpair_cloexec(AF_UNIX, SOCK_STREAM, 0, s) == 0);
|
|
|
|
connection = wl_connection_create(s[0]);
|
|
assert(connection);
|
|
@@ -181,8 +182,7 @@ struct marshal_data {
|
|
static void
|
|
setup_marshal_data(struct marshal_data *data)
|
|
{
|
|
- assert(socketpair(AF_UNIX,
|
|
- SOCK_STREAM | SOCK_CLOEXEC, 0, data->s) == 0);
|
|
+ assert(wl_os_socketpair_cloexec(AF_UNIX, SOCK_STREAM, 0, data->s) == 0);
|
|
data->read_connection = wl_connection_create(data->s[0]);
|
|
assert(data->read_connection);
|
|
data->write_connection = wl_connection_create(data->s[1]);
|