Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/teuchos/core/src/Teuchos_SystemInformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
// needs to be in the global namespace
extern char **environ;
#endif
#if defined(_WIN32)
#include <stdio.h>
FILE *popen(const char *command, const char *mode)
{ return _popen(command, mode); }

int pclose(FILE *stream)
{ return _pclose(stream);}
#endif

namespace Teuchos::SystemInformation {

Expand Down Expand Up @@ -213,7 +221,7 @@ void initializeCollection() {

#if !defined(__GNUC__) || (__GNUC__ >= 10)
try {
const std::string executable = std::filesystem::canonical("/proc/self/exe");
const std::string executable = std::filesystem::canonical("/proc/self/exe").string();
if (!executable.empty()) {
registerCommand("ldd", "ldd " + executable, "ldd");
}
Expand Down
Loading