diff options
author | 2005-02-03 22:11:35 +0000 | |
---|---|---|
committer | 2005-02-03 22:11:35 +0000 | |
commit | 43e1f5eb0ce0aa10f6d3349fa49a526547d0a054 (patch) | |
tree | 13f5d37c2366b833371cf66fdfbde31940296517 /dev-util/cscope/files | |
parent | Added ecpu_check function. See comments for details. (diff) | |
download | gentoo-2-43e1f5eb0ce0aa10f6d3349fa49a526547d0a054.tar.gz gentoo-2-43e1f5eb0ce0aa10f6d3349fa49a526547d0a054.tar.bz2 gentoo-2-43e1f5eb0ce0aa10f6d3349fa49a526547d0a054.zip |
Add compile fix (from Azarah)
(Portage version: 2.0.51-r15-horny-goats)
Diffstat (limited to 'dev-util/cscope/files')
-rw-r--r-- | dev-util/cscope/files/cscope-15.5-gcc295.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-util/cscope/files/cscope-15.5-gcc295.patch b/dev-util/cscope/files/cscope-15.5-gcc295.patch new file mode 100644 index 000000000000..464a675339b0 --- /dev/null +++ b/dev-util/cscope/files/cscope-15.5-gcc295.patch @@ -0,0 +1,22 @@ +--- 1/cscope-15.5/src/main.c 2005-02-03 23:38:39 +0200 ++++ 2/cscope-15.5/src/main.c 2005-02-03 23:39:26 +0200 +@@ -128,6 +128,8 @@ + char path[PATHLEN + 1]; /* file path */ + FILE *oldrefs; /* old cross-reference file */ + char *s; ++ char template[] = "cscope.XXXXXX"; ++ char *ret; + int c, i; + pid_t pid; + struct stat stat_buf; +@@ -313,10 +315,8 @@ + lineflag = mygetenv("CSCOPE_LINEFLAG", LINEFLAG); + lineflagafterfile = getenv("CSCOPE_LINEFLAG_AFTER_FILE")?1:0; + +- char template[] = "cscope.XXXXXX"; + snprintf(tmpdir, sizeof(tmpdir), "%s/%s", mygetenv("TMPDIR", TMPDIR), template); + tmpdir[sizeof(tmpdir)-1] = '\0'; +- char *ret; + ret = mkdtemp(tmpdir); + if (ret == NULL) + { |