summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2005-12-02 13:26:31 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2005-12-02 13:26:31 +0000
commit932d0bb02249a7a6ebe8bde4fda6a4126ead7c69 (patch)
tree8682bc9d6d540610946b56de33ecce9e0c265227
parentbfb500119bea9af83d1fdd8774ebf93a3021133f (diff)
downloadnavit-svn-932d0bb02249a7a6ebe8bde4fda6a4126ead7c69.tar.gz
Autodetect API
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@12 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--src/speech.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/speech.c b/src/speech.c
index 8823e155..0cb39e1b 100644
--- a/src/speech.c
+++ b/src/speech.c
@@ -1,5 +1,5 @@
/* speechd simple client program
- * CVS revision: $Id: speech.c,v 1.2 2005-12-02 12:32:47 martin-s Exp $
+ * CVS revision: $Id: speech.c,v 1.3 2005-12-02 13:26:31 martin-s Exp $
* Author: Tomas Cerha <cerha@brailcom.cz> */
#include <sys/types.h>
@@ -27,7 +27,11 @@ speech_new(void) {
struct speech *this;
int sockfd;
+#ifdef SPD_FATAL
+ sockfd = spd_open("map","main",NULL);
+#else
sockfd = spd_init("map","main");
+#endif
if (sockfd == 0)
return NULL;
this=g_new(struct speech,1);