File: 04_includes.patch

package info (click to toggle)
libgsm 1.0.18-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 632 kB
  • sloc: ansic: 6,246; makefile: 315
file content (36 lines) | stat: -rw-r--r-- 623 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Jochen Friedrich <jochen@scram.de>
Subject: Change errno handling to fix Hurd (Closes: #164191, #164194)

---
 inc/toast.h |    9 +++++++--
 src/code.c  |    4 ++--
 2 files changed, 9 insertions(+), 4 deletions(-)

--- a/inc/toast.h
+++ b/inc/toast.h
@@ -16,11 +16,12 @@
 
 #include <stdio.h>
 #include <ctype.h>
+#include <pthread.h>
 #include <signal.h>
 
 #include <errno.h>
-#ifndef	HAS_ERRNO_DECL
-	 extern int	errno;
+#ifndef errno
+ extern int	errno;
 #endif
 
 #ifdef	HAS_LIMITS_H
@@ -37,6 +38,10 @@
 # endif
 #endif
 
+#ifdef  HAS_STDIO_H
+# include <stdio.h>
+#endif
+
 #include "gsm.h"
 
 #ifndef	S_ISREG