1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/databases/p5-DBZ_File/files/patch-aa
Will Andrews 488749fefd Add p5-DBZ_File, a perl module for accessing DBZ databases.
PR:		18846
Submitted by;	Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
2000-07-02 08:08:14 +00:00

30 lines
561 B
Plaintext

--- DBZ_File.xs.orig Sat May 27 23:38:48 2000
+++ DBZ_File.xs Sat May 27 23:39:28 2000
@@ -1,7 +1,7 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
-#include <dbz.h>
+#include <dbz.c>
typedef int DBZ_File;
@@ -14,7 +14,7 @@
int flags
int mode
CODE:
- if (dbzdbminit(filename) == 0
+ if (dbminit(filename) == 0
|| (flags && mode && errno == ENOENT
&& dbzfresh(filename, 0, '\t', '?', 0) == 0))
RETVAL = 1;
@@ -27,7 +27,7 @@
dbz_DESTROY(db)
DBZ_File db
CODE:
- dbzdbmclose();
+ dbmclose();
long
dbz_FETCH(db, key)