OSDN Git Service

Fix exporting of ts_error_fn
authorPaulius Zaleckas <paulius.zaleckas@gmail.com>
Thu, 28 Oct 2010 16:42:58 +0000 (19:42 +0300)
committerChris Larson <chris_larson@mentor.com>
Tue, 2 Nov 2010 03:52:14 +0000 (20:52 -0700)
Without including tslib.h GCC doesn't export ts_error_fn symbol:
$ gcc -lts test.c -o test
/tmp/ccUi1g92.o: In function `main':
test.c:(.text+0x1a): undefined reference to `ts_error_fn'
collect2: ld returned 1 exit status

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
src/ts_error.c

index c5ecde4..8741081 100644 (file)
@@ -13,6 +13,8 @@
 #include <stdarg.h>
 #include <stdio.h>
 
+#include "tslib-private.h"
+
 static int stderrfn(const char *fmt, va_list ap)
 {
        return vfprintf(stderr, fmt, ap);