pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/screen OpenBSD grumbles without the socket defini...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f7c5d5591842
branches: trunk
changeset: 446717:f7c5d5591842
user: cjep <cjep%pkgsrc.org@localhost>
date: Fri Feb 12 22:28:03 2021 +0000
description:
OpenBSD grumbles without the socket definitions. Fixes build.
diffstat:
misc/screen/Makefile | 6 +++++-
misc/screen/distinfo | 3 ++-
misc/screen/patches/patch-window.h | 17 +++++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diffs (55 lines):
diff -r f0ac5710730a -r f7c5d5591842 misc/screen/Makefile
--- a/misc/screen/Makefile Fri Feb 12 14:35:55 2021 +0000
+++ b/misc/screen/Makefile Fri Feb 12 22:28:03 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.116 2020/08/02 10:59:13 kim Exp $
+# $NetBSD: Makefile,v 1.117 2021/02/12 22:28:03 cjep Exp $
DISTNAME= screen-4.8.0
PKGREVISION= 3
@@ -45,6 +45,10 @@
.include "../../mk/compiler.mk"
+.if ${OPSYS} == "OpenBSD"
+CFLAGS+= -D_OpenBSD_
+.endif
+
.if ${OPSYS} == "SunOS"
. if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
CPPFLAGS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
diff -r f0ac5710730a -r f7c5d5591842 misc/screen/distinfo
--- a/misc/screen/distinfo Fri Feb 12 14:35:55 2021 +0000
+++ b/misc/screen/distinfo Fri Feb 12 22:28:03 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.55 2020/08/02 10:59:13 kim Exp $
+$NetBSD: distinfo,v 1.56 2021/02/12 22:28:03 cjep Exp $
SHA1 (screen-4.8.0.tar.gz) = 2328927e10e68d357bdfec7bd740726011e834e9
RMD160 (screen-4.8.0.tar.gz) = 43888fa00f708a8a9aa226e0df39abd7181b15ae
@@ -19,3 +19,4 @@
SHA1 (patch-screen.c) = de5d8468100ab88cbdb842e21b04b00221e798b8
SHA1 (patch-socket.c) = ef7d3cb14f0199383c0e750af48f19537eb0b36d
SHA1 (patch-tty.sh) = 711e10879250de4b0e04bc2ec00472edeaf6aada
+SHA1 (patch-window.h) = 11a486e5d1d9c64d9baf56e868524264cc113047
diff -r f0ac5710730a -r f7c5d5591842 misc/screen/patches/patch-window.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/screen/patches/patch-window.h Fri Feb 12 22:28:03 2021 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: patch-window.h,v 1.1 2021/02/12 22:28:03 cjep Exp $
+
+# OpenBSD grumbles without the socket definitions
+
+--- window.h.orig Wed Feb 5 20:09:38 2020
++++ window.h Thu Feb 11 21:01:43 2021
+@@ -33,6 +33,10 @@
+ #ifndef SCREEN_WINDOW_H
+ #define SCREEN_WINDOW_H
+
++#ifdef _OpenBSD_
++#include <sys/socket.h>
++#endif
++
+ /* keep this in sync with the initialisations in window.c */
+ struct NewWindow
+ {
Home |
Main Index |
Thread Index |
Old Index