diff options
author | minskim <minskim@pkgsrc.org> | 2004-04-28 00:20:22 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-04-28 00:20:22 +0000 |
commit | c6da4d75267d3883323cd9d61919ed9435226306 (patch) | |
tree | 24e0350d18582ad47792ebfc1e5e6eb3277e4b30 /databases/sdbm | |
parent | d4681879e7a6365f615eaed602c5bca159a12497 (diff) | |
download | pkgsrc-c6da4d75267d3883323cd9d61919ed9435226306.tar.gz |
Add ``#include <stdio.h>'' to sdbm.c; otherwise this package doesn't
build on Linux because SEEK_SET is undeclared.
Diffstat (limited to 'databases/sdbm')
-rw-r--r-- | databases/sdbm/distinfo | 4 | ||||
-rw-r--r-- | databases/sdbm/patches/patch-aa | 13 |
2 files changed, 10 insertions, 7 deletions
diff --git a/databases/sdbm/distinfo b/databases/sdbm/distinfo index 2b159f18117..c6113b9823a 100644 --- a/databases/sdbm/distinfo +++ b/databases/sdbm/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.2 2001/04/18 16:11:05 agc Exp $ +$NetBSD: distinfo,v 1.3 2004/04/28 00:20:22 minskim Exp $ SHA1 (sdbm.tar.Z) = ebeb769b308a00853b0119f32dda781829e1d712 Size (sdbm.tar.Z) = 63557 bytes -SHA1 (patch-aa) = 91a4a5e39764dbfc892427a3c5fc32264cfc5da1 +SHA1 (patch-aa) = b5434430d01134c2ba580a609b6a9c3f7be86e50 SHA1 (patch-ab) = 76594d681bc8733e75703123312bd8c82afed333 SHA1 (patch-ac) = 9b1265bceada93f6a4cb4c4ed2b01e4a6b75c96c SHA1 (patch-ad) = bfc801d5b42902fd75d66d3b775d2a52d7c93921 diff --git a/databases/sdbm/patches/patch-aa b/databases/sdbm/patches/patch-aa index 8a4c0153bc9..7dac558a992 100644 --- a/databases/sdbm/patches/patch-aa +++ b/databases/sdbm/patches/patch-aa @@ -1,16 +1,19 @@ -$NetBSD: patch-aa,v 1.3 2000/09/26 03:47:10 hubertf Exp $ +$NetBSD: patch-aa,v 1.4 2004/04/28 00:20:22 minskim Exp $ ---- sdbm.c.orig Mon Sep 25 23:17:30 2000 +--- sdbm.c.orig 2004-04-27 19:10:43.000000000 -0500 +++ sdbm.c -@@ -25,6 +25,7 @@ +@@ -25,6 +25,10 @@ static char rcsid[] = "$Id: sdbm.c,v 1.1 #endif #include <errno.h> #include <string.h> +#include <stdlib.h> ++ ++/* To define SEEK_SET on Linux */ ++#include <stdio.h> #ifdef __STDC__ #include <stddef.h> -@@ -35,17 +36,6 @@ +@@ -35,17 +39,6 @@ static char rcsid[] = "$Id: sdbm.c,v 1.1 #endif /* @@ -28,7 +31,7 @@ $NetBSD: patch-aa,v 1.3 2000/09/26 03:47:10 hubertf Exp $ * forward */ static int getdbit proto((DBM *, long)); -@@ -95,7 +85,7 @@ +@@ -95,7 +88,7 @@ register int mode; */ n = strlen(file) * 2 + strlen(DIRFEXT) + strlen(PAGFEXT) + 2; |