summaryrefslogtreecommitdiff
path: root/ext/ODBM_File
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-01-04 21:14:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-04 21:14:22 +0000
commitbb636fa4a888d369d95f00a75923476bd0dae49f (patch)
treeddf6d6c614fb7d0f59c580fe57980e678b353a43 /ext/ODBM_File
parent76df47578dba2a9fdfb9999a2625aa04b4cf475a (diff)
downloadperl-bb636fa4a888d369d95f00a75923476bd0dae49f.tar.gz
DB3 NDBM/ODBM emulation tweaks from Stanislav Brabec <utx@penguin.cz>.
p4raw-id: //depot/perl@8320
Diffstat (limited to 'ext/ODBM_File')
-rw-r--r--ext/ODBM_File/ODBM_File.xs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/ODBM_File/ODBM_File.xs b/ext/ODBM_File/ODBM_File.xs
index 150f2ef894..27174ef062 100644
--- a/ext/ODBM_File/ODBM_File.xs
+++ b/ext/ODBM_File/ODBM_File.xs
@@ -3,6 +3,11 @@
#include "XSUB.h"
#ifdef I_DBM
+/* If using the DB3 emulation, ENTER is defined both
+ * by DB3 and Perl. We drop the Perl definition now.
+ * See also INSTALL section on DB3.
+ * -- Stanislav Brabec <utx@penguin.cz> */
+# undef ENTER
# include <dbm.h>
#else
# ifdef I_RPCSVC_DBM