summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-01 15:34:24 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-01 15:34:24 +0000
commit640374d0dfc3428416b596d67c06b3c817f44bd8 (patch)
tree0125d04838ec2165b6a564b01c53e815f9d81d20 /ext
parent592f596992fbcfa7e7c135f9212d2ec2def553a6 (diff)
downloadperl-640374d0dfc3428416b596d67c06b3c817f44bd8.tar.gz
Configure tweaks; record the Berkeley DB version,
probe for realpath(), for setresuid() and setresgid() prototypes; use realpath() (try to be paranoid enough), use the setres[ug]id prototypes because glibc has the functions but not their prototypes; add -Wall -ansi to gcc ccflags; regen toc. p4raw-id: //depot/perl@10372
Diffstat (limited to 'ext')
-rw-r--r--ext/DB_File/DB_File.xs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/DB_File/DB_File.xs b/ext/DB_File/DB_File.xs
index f84f55069c..8a9ce8a2b6 100644
--- a/ext/DB_File/DB_File.xs
+++ b/ext/DB_File/DB_File.xs
@@ -118,10 +118,15 @@
# define DEFSV GvSV(defgv)
#endif
+/* Mention DB_VERSION_MAJOR_CFG, DB_VERSION_MINOR_CFG, and
+ DB_VERSION_PATCH_CFG here so that Configure pulls them all in. */
+
/* Being the Berkeley DB we prefer the <sys/cdefs.h> (which will be
* shortly #included by the <db.h>) __attribute__ to the possibly
* already defined __attribute__, for example by GNUC or by Perl. */
+#if DB_VERSION_MAJOR_CFG < 2
+
#undef __attribute__
/* Since we dropped the gccish definition of __attribute__ we will want
@@ -131,6 +136,8 @@
#undef dNOOP
#define dNOOP extern int Perl___notused
+#endif
+
/* If Perl has been compiled with Threads support,the symbol op will
be defined here. This clashes with a field name in db.h, so get rid of it.
*/