diff options
author | woglinde <heinold@inf.fu-berlin.de> | 2009-03-28 16:24:07 +0100 |
---|---|---|
committer | woglinde <heinold@inf.fu-berlin.de> | 2009-03-31 10:01:05 +0200 |
commit | f09ab9e93d09f6b82cfb975a955473c94625c544 (patch) | |
tree | 9d0f296e0495da90b05a7ed5851afc9b86c26b2d /recipes/libgsm/libgsm-1.0.12/04_includes.patch | |
parent | 56b8436c3b3ed57df16d0e3d01d16a2193b89c42 (diff) |
libgsm: update to version 1.0.12
* all the patches are stolen from debian
Diffstat (limited to 'recipes/libgsm/libgsm-1.0.12/04_includes.patch')
-rw-r--r-- | recipes/libgsm/libgsm-1.0.12/04_includes.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes/libgsm/libgsm-1.0.12/04_includes.patch b/recipes/libgsm/libgsm-1.0.12/04_includes.patch new file mode 100644 index 0000000000..2769b40b05 --- /dev/null +++ b/recipes/libgsm/libgsm-1.0.12/04_includes.patch @@ -0,0 +1,43 @@ +diff -urNad libgsm-1.0.10~/inc/toast.h libgsm-1.0.10/inc/toast.h +--- libgsm-1.0.10~/inc/toast.h 2007-11-01 15:37:52.000000000 +0100 ++++ libgsm-1.0.10/inc/toast.h 2007-11-01 15:52:33.000000000 +0100 +@@ -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 +diff -urNad libgsm-1.0.10~/src/code.c libgsm-1.0.10/src/code.c +--- libgsm-1.0.10~/src/code.c 2007-11-01 15:37:52.000000000 +0100 ++++ libgsm-1.0.10/src/code.c 2007-11-01 15:52:33.000000000 +0100 +@@ -9,8 +9,8 @@ + #include "config.h" + + +-#ifdef HAS_STDLIB_H +-#include <stdlib.h> ++#ifdef HAS_STRING_H ++#include <string.h> + #else + # include "proto.h" + extern char * memcpy P((char *, char *, int)); |