summaryrefslogtreecommitdiff
path: root/databases/puredb/files/patch-example_read.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-04-01 02:36:38 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-04-01 02:36:38 +0000
commit01f686aad2e21fcc44d04a3d07b74975e56c2aa3 (patch)
tree251f4cec7efc76d4618a03dfa57f0af4eac693f4 /databases/puredb/files/patch-example_read.c
parentx11/gromit: on-screen annotations (diff)
databases/puredb: Set of libraries for creating and reading constant databases
PureDB is a portable and tiny set of libraries for creating and reading constant databases. It manages data files that contains text or binary key/data pairs of arbitrary sizes. Lookups are very fast (normally only one disk access to match a hash value), overhead is low (a database is 1028 bytes plus only 16 extra bytes per record), multiple concurrent read access are supported, and databases can be up to 4 Gb long, and they are portable across architectures. PR: ports/48901 Submitted by: Sergei Kolobov <sergei@kolobov.com>
Notes
Notes: svn path=/head/; revision=77886
Diffstat (limited to 'databases/puredb/files/patch-example_read.c')
-rw-r--r--databases/puredb/files/patch-example_read.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/databases/puredb/files/patch-example_read.c b/databases/puredb/files/patch-example_read.c
new file mode 100644
index 000000000000..ba6d4fe304a8
--- /dev/null
+++ b/databases/puredb/files/patch-example_read.c
@@ -0,0 +1,12 @@
+--- src/example_read.c.orig Fri Nov 1 23:21:19 2002
++++ src/example_read.c Fri Nov 1 23:21:47 2002
+@@ -3,6 +3,9 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#ifdef __FreeBSD__
++#include <sys/types.h>
++#endif
+ #include <puredb_read.h>
+
+ int main(void)