summaryrefslogtreecommitdiff
path: root/misc/tmate/patches/patch-Makefile.am
blob: b5b6e114aa9ec3a5db3d8a8eb5073ef9034159a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-Makefile.am,v 1.1 2021/01/09 12:53:45 rxg Exp $

Compatible with NetBSD.

--- Makefile.am.orig	2021-01-07 13:42:30.818799315 +0000
+++ Makefile.am
@@ -47,6 +47,11 @@ endif
 CFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-null-pointer-arithmetic
 CFLAGS += -Wno-deprecated-declarations -Wno-format-nonliteral
 
+# Set flags for NetBSD.
+if IS_NETBSD
+CPPFLAGS += -D_OPENBSD_SOURCE
+endif
+
 # Set flags for Solaris.
 if IS_SUNOS
 if IS_GCC