From: Dodji Seketeli Date: Wed, 26 Feb 2020 10:48:44 +0000 (+0100) Subject: tools-utils: Drop redefinition of fopen when BAD_FTS is defined X-Git-Tag: upstream/1.7~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a3e5c815378161aa2e345e0160d4105f5e932d1;p=platform%2Fupstream%2Flibabigail.git tools-utils: Drop redefinition of fopen when BAD_FTS is defined When the BAD_FTS macro was defined at compile time (to handle the use of fts.h on glibc < 2.23), we needed to re-map fopen to fopen64 if _FILE_OFFSET_BITS=64 was defined. We do not need this anymore because we don't use fopen in that module anymore. Furthermore, as we now use fstream, doing the fopen to fopen64 remapping is now preventing the fstream c++ headers to compile on el6 systems. This patch just simply does away with the fopen to fopen64 remapping and thus fixes the compilation on el6 systems. * src/abg-tools-utils.cc: Do not remap fopen to fopen64 as we don't use fopen explicitly anymore. Signed-off-by: Dodji Seketeli --- diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc index 7705faaa..7c9d256b 100644 --- a/src/abg-tools-utils.cc +++ b/src/abg-tools-utils.cc @@ -32,6 +32,11 @@ // For package configuration macros. #include "config.h" +#ifndef BAD_FTS + #include + #include +#endif + #include #include #include @@ -45,18 +50,6 @@ #include #include #include -// If fts.h is included before config.h, its indirect inclusions may -// not give us the right LFS aliases of these functions, so map them -// manually. -#ifdef BAD_FTS - #ifdef _FILE_OFFSET_BITS - #define open open64 - #define fopen fopen64 - #endif -#else - #include - #include -#endif #include #include