summaryrefslogtreecommitdiff
path: root/recipes/minicom/minicom-2.3/rename-conflicting-functions.patch
diff options
context:
space:
mode:
authormd <md@freiheit.com>2009-06-08 19:31:47 +0200
committermd <md@freiheit.com>2009-06-08 19:31:47 +0200
commita9a408c12539e4bb6679563ac8da28c32aa41f3a (patch)
tree7a6b32d94ce58bd8b7fe96818e88040eb2b06acb /recipes/minicom/minicom-2.3/rename-conflicting-functions.patch
parent9ecf77a1cf4a7ae8b40727f20f0c324473923751 (diff)
minicom: fix compile error due to conflicting function names
- the `getline()' function used in minicom.c may have been defined in stdio.h if __USE_GNU is defined - as a fix that function name is redefined within minicom.c
Diffstat (limited to 'recipes/minicom/minicom-2.3/rename-conflicting-functions.patch')
-rw-r--r--recipes/minicom/minicom-2.3/rename-conflicting-functions.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/minicom/minicom-2.3/rename-conflicting-functions.patch b/recipes/minicom/minicom-2.3/rename-conflicting-functions.patch
new file mode 100644
index 0000000000..c344203267
--- /dev/null
+++ b/recipes/minicom/minicom-2.3/rename-conflicting-functions.patch
@@ -0,0 +1,13 @@
+--- minicom-2.3/src/minicom.c-orig 2009-06-08 14:49:07.000000000 +0200
++++ minicom-2.3/src/minicom.c 2009-06-08 14:50:23.000000000 +0200
+@@ -63,6 +63,10 @@
+ }
+ #endif /*DEBUG*/
+
++#ifdef __USE_GNU
++#define getline minicom_getline
++#endif
++
+ /*
+ * Sub - menu's.
+ */