summaryrefslogtreecommitdiff
path: root/x11/rxvt-unicode/files/patch-src__command.C
blob: 25c7d46e46c50913dfcc86de3c86df98d8815d61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/command.C.orig	2021-05-13 19:40:55 UTC
+++ src/command.C
@@ -57,6 +57,7 @@
 #endif
 
 #include <signal.h>
+#include <sys/param.h>
 
 #if LINUX_YIELD_HACK
 # include <time.h>
@@ -2368,7 +2369,9 @@ rxvt_term::next_char () noexcept
       if (len == (size_t)-2)
         {
           // the mbstate stores incomplete sequences. didn't know this :/
+#if __FreeBSD_version>502110
           cmdbuf_ptr = cmdbuf_endp;
+#endif
           break;
         }