0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/cscope/src-main.c.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

16 lines
585 B
Diff

diff -u -r ../cscope-15.8b/src/main.c ./src/main.c
--- ../cscope-15.8b/src/main.c 2014-11-20 22:12:54.000000000 +0100
+++ ./src/main.c 2017-05-22 14:30:00.303282400 +0200
@@ -62,9 +62,9 @@
#define HOME "/" /* no $HOME --> use root directory */
#define SHELL "sh"
#define LINEFLAG "+%s" /* default: used by vi and emacs */
-#define TMPDIR "/tmp"
+#define TMPDIR "@TERMUX_PREFIX@/tmp"
#ifndef DFLT_INCDIR
-#define DFLT_INCDIR "/usr/include"
+#define DFLT_INCDIR "@TERMUX_PREFIX@/include"
#endif
static char const rcsid[] = "$Id: main.c,v 1.57 2014/11/20 21:12:54 broeker Exp $";