pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/wayland wayland: declare wl_os_epoll_create_cloe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f5bd1619ac0
branches:  trunk
changeset: 338687:4f5bd1619ac0
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Aug 28 10:35:40 2019 +0000

description:
wayland: declare wl_os_epoll_create_cloexec properly

diffstat:

 devel/wayland/distinfo                       |   6 +++---
 devel/wayland/patches/patch-src_wayland-os.c |  15 +++++++--------
 devel/wayland/patches/patch-src_wayland-os.h |  13 +++++++++----
 3 files changed, 19 insertions(+), 15 deletions(-)

diffs (96 lines):

diff -r 564d9442ac83 -r 4f5bd1619ac0 devel/wayland/distinfo
--- a/devel/wayland/distinfo    Wed Aug 28 10:34:04 2019 +0000
+++ b/devel/wayland/distinfo    Wed Aug 28 10:35:40 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2019/08/19 12:50:23 nia Exp $
+$NetBSD: distinfo,v 1.3 2019/08/28 10:35:40 nia Exp $
 
 SHA1 (wayland-1.17.0.tar.xz) = 4d9e08a7a4a07fa37a25d7aa3ef83f08edec0600
 RMD160 (wayland-1.17.0.tar.xz) = 635494fb0f5d9eb1e782f98e08c3e0e26ff44268
@@ -8,8 +8,8 @@
 SHA1 (patch-configure.ac) = df15013a1639d673e5f0a86433a074f6201dbbc4
 SHA1 (patch-cursor_os-compatibility.c) = 9aac1c734199bc7e33e7735356bc8dbc80fba89d
 SHA1 (patch-src_event-loop.c) = 04d0eed4ba0708518201ec630dab97d52735fb0c
-SHA1 (patch-src_wayland-os.c) = fc1a70d4baf8311afce92a081368104b7a732e27
-SHA1 (patch-src_wayland-os.h) = 2e8fb20d4adfb3666adffe48104205488b4a1c7b
+SHA1 (patch-src_wayland-os.c) = 7297f8259aea9603a7ba20fe58f79e3fd0042990
+SHA1 (patch-src_wayland-os.h) = 1e01dfadb5ed5889d76e024d30537935f33631a3
 SHA1 (patch-src_wayland-server.c) = 335de8f5390eb337dfbde26f523162bd44c06baf
 SHA1 (patch-src_wayland-shm.c) = a59ddce3a161bb21fedb04737ff502da608b1da9
 SHA1 (patch-tests_client-test.c) = 6ffe18dfd64176a92f6f795eb757c54a3cf0ad10
diff -r 564d9442ac83 -r 4f5bd1619ac0 devel/wayland/patches/patch-src_wayland-os.c
--- a/devel/wayland/patches/patch-src_wayland-os.c      Wed Aug 28 10:34:04 2019 +0000
+++ b/devel/wayland/patches/patch-src_wayland-os.c      Wed Aug 28 10:35:40 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_wayland-os.c,v 1.1 2019/08/18 16:05:12 nia Exp $
+$NetBSD: patch-src_wayland-os.c,v 1.2 2019/08/28 10:35:40 nia Exp $
 
 BSD support from FreeBSD
 
@@ -79,7 +79,7 @@
  
        newfd = fcntl(fd, F_DUPFD, minfd);
        return set_cloexec_or_close(newfd);
-@@ -123,17 +153,20 @@ wl_os_recvmsg_cloexec(int sockfd, struct
+@@ -123,15 +153,18 @@ wl_os_recvmsg_cloexec(int sockfd, struct
  {
        ssize_t len;
  
@@ -96,16 +96,15 @@
  
 +#ifdef HAVE_SYS_EPOLL_H
  int
--wl_os_epoll_create_cloexec(void)
-+wl_os_queue_create_cloexec(void)
+ wl_os_epoll_create_cloexec(void)
  {
-       int fd;
- 
-@@ -148,6 +181,16 @@ wl_os_epoll_create_cloexec(void)
+@@ -148,6 +181,18 @@ wl_os_epoll_create_cloexec(void)
        fd = epoll_create(1);
        return set_cloexec_or_close(fd);
  }
-+#elif defined(HAVE_SYS_EVENT_H)
++#endif
++
++#ifdef HAVE_SYS_EVENT_H
 +int
 +wl_os_queue_create_cloexec(void)
 +{
diff -r 564d9442ac83 -r 4f5bd1619ac0 devel/wayland/patches/patch-src_wayland-os.h
--- a/devel/wayland/patches/patch-src_wayland-os.h      Wed Aug 28 10:34:04 2019 +0000
+++ b/devel/wayland/patches/patch-src_wayland-os.h      Wed Aug 28 10:35:40 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_wayland-os.h,v 1.1 2019/08/18 16:05:12 nia Exp $
+$NetBSD: patch-src_wayland-os.h,v 1.2 2019/08/28 10:35:40 nia Exp $
 
 BSD support from FreeBSD
 
@@ -6,7 +6,7 @@
 
 --- src/wayland-os.h.orig      2019-03-21 00:55:25.000000000 +0000
 +++ src/wayland-os.h
-@@ -26,17 +26,23 @@
+@@ -26,17 +26,29 @@
  #ifndef WAYLAND_OS_H
  #define WAYLAND_OS_H
  
@@ -24,10 +24,15 @@
  ssize_t
  wl_os_recvmsg_cloexec(int sockfd, struct msghdr *msg, int flags);
  
-+
++#ifdef HAVE_SYS_EPOLL_H
  int
--wl_os_epoll_create_cloexec(void);
+ wl_os_epoll_create_cloexec(void);
++#endif
++
++#ifdef HAVE_SYS_EVENT_H
++int
 +wl_os_queue_create_cloexec(void);
++#endif
  
  int
  wl_os_accept_cloexec(int sockfd, struct sockaddr *addr, socklen_t *addrlen);



Home | Main Index | Thread Index | Old Index