https://github.com/arq5x/bedtools2/pull/1087 From 3fbf2ddc8ebf0fc1bd492d14a6046aadd59ecadb Mon Sep 17 00:00:00 2001 From: David Seifert Date: Thu, 25 Apr 2024 11:18:48 +0200 Subject: [PATCH] Add missing `stdint.h` includes * Musl is a lot stricter with transitive includes: Bug: https://bugs.gentoo.org/907971 --- a/src/bamToBed/bamToBed.cpp +++ b/src/bamToBed/bamToBed.cpp @@ -22,6 +22,7 @@ using namespace BamTools; #include #include #include +#include using namespace std; --- a/src/clusterBed/clusterBed.cpp +++ b/src/clusterBed/clusterBed.cpp @@ -12,6 +12,8 @@ #include "lineFileUtilities.h" #include "clusterBed.h" +#include + // = Constructor = BedCluster::BedCluster(string &bedFile, int maxDistance, --- a/src/pairToBed/pairToBed.h +++ b/src/pairToBed/pairToBed.h @@ -22,6 +22,7 @@ using namespace BamTools; #include #include #include +#include using namespace std; --- a/src/randomBed/randomBed.h +++ b/src/randomBed/randomBed.h @@ -22,6 +22,7 @@ #include #include #include // for binary search +#include using namespace std; const int MAX_TRIES = 1000000; --- a/src/summaryFile/summaryFile.h +++ b/src/summaryFile/summaryFile.h @@ -12,6 +12,8 @@ #include "ToolBase.h" #include "ContextSummary.h" +#include + struct Interval { CHRPOS start; CHRPOS end; --- a/src/utils/BamTools/include/BamAlignment.mapping.hpp +++ b/src/utils/BamTools/include/BamAlignment.mapping.hpp @@ -1,3 +1,4 @@ +#include struct _RefID_t { operator int32_t() const {return (int32_t)(_ptr()->core.tid);} --- a/src/utils/BamTools/include/api/BamAux.h +++ b/src/utils/BamTools/include/api/BamAux.h @@ -1,4 +1,5 @@ #include +#include #ifndef BAMAUX_H #define BAMAUX_H --- a/src/utils/FileRecordTools/FileReaders/SingleLineDelimTextFileReader.h +++ b/src/utils/FileRecordTools/FileReaders/SingleLineDelimTextFileReader.h @@ -9,6 +9,7 @@ #define SINGLELINETEXTFILEREADER_H_ #include +#include #include "FileReader.h" #include "string.h" #include "lineFileUtilities.h" --- a/src/utils/FileRecordTools/Records/BamRecord.cpp +++ b/src/utils/FileRecordTools/Records/BamRecord.cpp @@ -10,6 +10,8 @@ #include "BamFileReader.h" #include "RecordKeyVector.h" +#include + BamRecord::BamRecord() : _bamChromId(-1) { --- a/src/utils/GenomeFile/GenomeFile.h +++ b/src/utils/GenomeFile/GenomeFile.h @@ -19,6 +19,7 @@ #include #include #include +#include #include // for bsearch lower_bound() #include "api/BamReader.h" #include "api/BamAux.h" --- a/src/utils/GenomeFile/NewGenomeFile.h +++ b/src/utils/GenomeFile/NewGenomeFile.h @@ -14,6 +14,7 @@ #define NEW_GENOMEFILE_H #include // for bsearch lower_bound() +#include #include "BedtoolsTypes.h" --- a/src/utils/bedFilePE/bedFilePE.h +++ b/src/utils/bedFilePE/bedFilePE.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include "bedFile.h" #include "lineFileUtilities.h" --- a/src/utils/general/ParseTools.cpp +++ b/src/utils/general/ParseTools.cpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include #include #include --- a/src/utils/lineFileUtilities/lineFileUtilities.h +++ b/src/utils/lineFileUtilities/lineFileUtilities.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include --- a/src/utils/sequenceUtilities/sequenceUtils.h +++ b/src/utils/sequenceUtilities/sequenceUtils.h @@ -4,6 +4,7 @@ #include #include #include +#include using namespace std; --- a/src/windowMaker/windowMaker.h +++ b/src/windowMaker/windowMaker.h @@ -12,6 +12,8 @@ Licenced under the GNU General Public License 2.0 license. #include "NewGenomeFile.h" #include "bedFile.h" +#include + using namespace std; --- a/src/windowMaker/windowMakerMain.cpp +++ b/src/windowMaker/windowMakerMain.cpp @@ -12,6 +12,8 @@ Licenced under the GNU General Public License 2.0 license. #include "windowMaker.h" #include "version.h" +#include + using namespace std; // define our program name