mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fix tinycdb dosen't work.
PR: ports/48857 Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
This commit is contained in:
parent
63356425d0
commit
7025199be8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78213
@ -8,6 +8,7 @@
|
||||
|
||||
PORTNAME= tinycdb
|
||||
PORTVERSION= 0.73
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://ftp.corpit.ru/pub/tinycdb/
|
||||
|
||||
|
11
databases/tinycdb/files/patch-cdb.c
Normal file
11
databases/tinycdb/files/patch-cdb.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- cdb.c.orig Mon Dec 10 06:18:02 2001
|
||||
+++ cdb.c Mon Mar 3 08:38:57 2003
|
||||
@@ -144,7 +144,7 @@
|
||||
if (printf(mode == 'd' ? "+%u,%u:" : "+%u:", klen, vlen) < 0) return -1;
|
||||
if (fcpy(f, stdout, klen, &pos, eod) != 0) return -1;
|
||||
if (mode == 'd')
|
||||
- if (!fputs(flags & F_MAP ? " " : "->", stdout))
|
||||
+ if (fputs(flags & F_MAP ? " " : "->", stdout) == EOF)
|
||||
return -1;
|
||||
if (fcpy(f, mode == 'd' ? stdout : NULL, vlen, &pos, eod) != 0)
|
||||
return -1;
|
@ -1,3 +1,5 @@
|
||||
It is analogous to cdb from D.J.Berstein, but written completely from scratch,
|
||||
has some functionality removed and some new added compared to DJB's one, a bit
|
||||
faster, and much easier to use (only one library needed at link time).
|
||||
|
||||
WWW: http://www.corpit.ru/mjt/tinycdb.html
|
||||
|
Loading…
Reference in New Issue
Block a user