summaryrefslogtreecommitdiff
path: root/databases/sdbm/patches
diff options
context:
space:
mode:
authorminskim <minskim>2004-04-28 00:20:22 +0000
committerminskim <minskim>2004-04-28 00:20:22 +0000
commit9cc19f915219350afcfafff7f25cb2c738750f93 (patch)
tree24e0350d18582ad47792ebfc1e5e6eb3277e4b30 /databases/sdbm/patches
parentb69b7d46b9b9c96ee292e0c2ba8dc86af110707e (diff)
downloadpkgsrc-9cc19f915219350afcfafff7f25cb2c738750f93.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/patches')
-rw-r--r--databases/sdbm/patches/patch-aa13
1 files changed, 8 insertions, 5 deletions
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;