termux-packages/packages/cscope/errno.patch
Fredrik Fornwall 782d1c4823 cscope: Some minor updates
- Change default include directory.
- Avoid accidental linking to libfl.so.
- Avoid defining errno at all on Android.
2017-05-22 14:37:47 +02:00

13 lines
334 B
Diff

--- src/src/snprintf.c 2009-04-10 13:39:23.000000000 +0000
+++ patches/snprintf.c 2017-05-19 07:45:08.926751318 +0000
@@ -522,7 +522,9 @@
static UINTMAX_T myround(LDOUBLE);
static LDOUBLE mypow10(int);
+#ifndef __ANDROID__
extern int errno;
+#endif
int
rpl_vsnprintf(char *str, size_t size, const char *format, va_list args)