Created
April 30, 2023 15:13
-
-
Save herrhotzenplotz/ae6decd42d932feea384a31d4a023bc4 to your computer and use it in GitHub Desktop.
gcli paste
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/quick-lint-js/port/child-process.cpp b/src/quick-lint-js/port/child-process.cpp | |
index 20a2e2cb7..2808faae9 100644 | |
--- a/src/quick-lint-js/port/child-process.cpp | |
+++ b/src/quick-lint-js/port/child-process.cpp | |
@@ -40,6 +40,8 @@ | |
using namespace std::literals::string_view_literals; | |
+extern char **environ; | |
+ | |
namespace quick_lint_js { | |
namespace { | |
#if QLJS_HAVE_POSIX_SPAWN || QLJS_HAVE_WINDOWS_H | |
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt | |
index 25d779724..e97615cbb 100644 | |
--- a/test/CMakeLists.txt | |
+++ b/test/CMakeLists.txt | |
@@ -9,7 +9,8 @@ include(QuickLintJSTarget) | |
set(OLD_CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES}") | |
list(APPEND CMAKE_REQUIRED_LIBRARIES util) | |
check_cxx_source_compiles( | |
- "#include <pty.h> | |
+ "#include <unistd.h> | |
+ extern \"C\" ::pid_t forkpty(void *, void *, void *, void *); | |
int main() { | |
pid_t rc = ::forkpty(nullptr, nullptr, nullptr, nullptr); | |
return (int)rc; | |
diff --git a/test/test-cli.cpp b/test/test-cli.cpp | |
index 254686599..2a7d0c4c0 100644 | |
--- a/test/test-cli.cpp | |
+++ b/test/test-cli.cpp | |
@@ -14,7 +14,7 @@ | |
#include <quick-lint-js/port/have.h> | |
#if QLJS_HAVE_LIBUTIL_H | |
-#include <util.h> | |
+#include <libutil.h> | |
#endif | |
#if QLJS_HAVE_UTIL_H | |
diff --git a/test/test-file.cpp b/test/test-file.cpp | |
index 0699942b6..98a7a678c 100644 | |
--- a/test/test-file.cpp | |
+++ b/test/test-file.cpp | |
@@ -38,7 +38,7 @@ | |
#endif | |
#if QLJS_HAVE_LIBUTIL_H | |
-#include <util.h> | |
+#include <libutil.h> | |
#endif | |
#if QLJS_HAVE_MKFIFO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment