blob: 2769b40b05e6a5dd6c0f7424fe0a173caf76de71 [file] [log] [blame]
Holger Hans Peter Freytherb49f5122011-11-11 21:36:15 +08001diff -urNad libgsm-1.0.10~/inc/toast.h libgsm-1.0.10/inc/toast.h
2--- libgsm-1.0.10~/inc/toast.h 2007-11-01 15:37:52.000000000 +0100
3+++ libgsm-1.0.10/inc/toast.h 2007-11-01 15:52:33.000000000 +0100
4@@ -16,11 +16,12 @@
5
6 #include <stdio.h>
7 #include <ctype.h>
8+#include <pthread.h>
9 #include <signal.h>
10
11 #include <errno.h>
12-#ifndef HAS_ERRNO_DECL
13- extern int errno;
14+#ifndef errno
15+ extern int errno;
16 #endif
17
18 #ifdef HAS_LIMITS_H
19@@ -37,6 +38,10 @@
20 # endif
21 #endif
22
23+#ifdef HAS_STDIO_H
24+# include <stdio.h>
25+#endif
26+
27 #include "gsm.h"
28
29 #ifndef S_ISREG
30diff -urNad libgsm-1.0.10~/src/code.c libgsm-1.0.10/src/code.c
31--- libgsm-1.0.10~/src/code.c 2007-11-01 15:37:52.000000000 +0100
32+++ libgsm-1.0.10/src/code.c 2007-11-01 15:52:33.000000000 +0100
33@@ -9,8 +9,8 @@
34 #include "config.h"
35
36
37-#ifdef HAS_STDLIB_H
38-#include <stdlib.h>
39+#ifdef HAS_STRING_H
40+#include <string.h>
41 #else
42 # include "proto.h"
43 extern char * memcpy P((char *, char *, int));