diff options
author | steve <steve@FreeBSD.org> | 2001-02-26 11:45:31 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2001-02-26 11:45:31 +0800 |
commit | 0919bd5349b79fe8d44e5604b80f86abb17dc2bc (patch) | |
tree | 05a2909abd10004e6f82bb33756543cafd912686 /devel/cscope | |
parent | a784d15d3eef0b3206ef73b3d1e84b4c0c4d9a3d (diff) | |
download | freebsd-ports-gnome-0919bd5349b79fe8d44e5604b80f86abb17dc2bc.tar.gz freebsd-ports-gnome-0919bd5349b79fe8d44e5604b80f86abb17dc2bc.tar.zst freebsd-ports-gnome-0919bd5349b79fe8d44e5604b80f86abb17dc2bc.zip |
Since fputs doesn't return the number of bytes written, bump dboffset
by strlen(s) instead.
PR: 21705
Submitted by: Alexander Kabaev <ak03@gte.com>
Diffstat (limited to 'devel/cscope')
-rw-r--r-- | devel/cscope/files/patch-aa | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/cscope/files/patch-aa b/devel/cscope/files/patch-aa new file mode 100644 index 000000000000..0a8d3170e1dd --- /dev/null +++ b/devel/cscope/files/patch-aa @@ -0,0 +1,11 @@ +--- src/constants.h.orig Sun Feb 25 14:40:57 2001 ++++ src/constants.h Sun Feb 25 14:41:08 2001 +@@ -43,7 +43,7 @@ + + /* database output macros that update its offset */ + #define dbputc(c) (++dboffset, (void) putc(c, newrefs)) +-#if Linux || BSD && !sun ++#if Linux || __FreeBSD__ || BSD && !sun + #define dbfputs(s) (dboffset += strlen(s), fputs(s, newrefs)) + #else + #define dbfputs(s) (dboffset += fputs(s, newrefs)) |