Blob Blame History Raw
diff -up perl-5.24.0/Configure.gdbm perl-5.24.0/Configure
--- perl-5.24.0/Configure.gdbm	2016-07-14 15:56:45.673916058 +0200
+++ perl-5.24.0/Configure	2016-07-14 15:56:45.732915809 +0200
@@ -12415,7 +12415,15 @@ eval $inlibc
 
 case "$d_dbmclose" in
 $define)
-	set dbm.h i_dbm
+	: Compatibility location for RedHat 6.x
+	set gdbm/dbm.h i_gdbmdbm
+	eval $inhdr
+	if $test -f /usr/include/gdbm/dbm.h; then
+	    echo '<gdbm/dbm.h> found.'
+	fi
+	i_gdbmdbm="$define"
+	i_dbm="$i_gdbmdbm"
+	set i_dbm
 	eval $inhdr
 	case "$i_dbm" in
 	$define)
@@ -12423,7 +12431,7 @@ $define)
 		set i_rpcsvcdbm
 		eval $setvar
 		;;
-	*)	set rpcsvc/dbm.h i_rpcsvcdbm
+	*)	set rpcsvc/gdbm/dbm.h i_rpcsvcdbm
 		eval $inhdr
 		;;
 	esac
@@ -23700,6 +23708,7 @@ for xxx in $xs_extensions ; do
 		esac
 		;;
 	ODBM_File|odbm_fil)
+	    echo "ODBM_File ${i_dbm}${i_rpcsvcdbm} ${define}" >&4
 		case "${i_dbm}${i_rpcsvcdbm}" in
 		*"${define}"*)
 		    case "$d_cplusplus" in
diff -up perl-5.24.0/ext/ODBM_File/ODBM_File.xs.gdbm perl-5.24.0/ext/ODBM_File/ODBM_File.xs
--- perl-5.24.0/ext/ODBM_File/ODBM_File.xs.gdbm	2016-07-14 15:56:45.676916045 +0200
+++ perl-5.24.0/ext/ODBM_File/ODBM_File.xs	2016-07-14 15:56:45.732915809 +0200
@@ -9,7 +9,7 @@
 #endif
 
 #ifdef I_DBM
-#  include <dbm.h>
+#  include <gdbm/dbm.h>
 #else
 #  ifdef I_RPCSVC_DBM
 #    include <rpcsvc/dbm.h>