Source: nn
Version: 6.7.3-14
Severity: normal
Tags: patch

Dear Maintainer,

>From 4e0602f24ba305bea39b7d5eba49d83931d618ab Mon Sep 17 00:00:00 2001
>From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
>Date: Wed, 24 Mar 2021 23:44:55 +0000
>Subject: [PATCH] term.c: add "feature_test_macros(7)" definitions for
> "cfmakeraw()"

Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
---
 term.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/term.c b/term.c
index 2cee711..9e305dd 100644
--- a/term.c
+++ b/term.c
@@ -4,6 +4,17 @@
  *
  *     Terminal interface.
  */
+/* Needed for cfmakeraw() */
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE 1 /* for glibc >= 2.19 */
+#endif
+/* For glibc <= 2.19
+ *
+#ifndef _BSD_SOURCE
+#define _BSD_SOURCE 1
+#endif
+ *
+ */
 #define raw __curses__raw__
 #include <stdlib.h>
 #include <unistd.h>
-- 
2.30.2



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.19-1 (SMP w/2 CPU threads)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

-- debconf information excluded

-- 
Bjarni I. Gislason

Reply via email to