From 2ef82b7da88ccc11dcec57c6692bdc1becd27e5d Mon Sep 17 00:00:00 2001 From: Martin Cermak Date: Thu, 21 Sep 2023 16:35:08 +0200 Subject: [PATCH] Add missing header to fix an s390x specific compile problem Add include unistd.h because of the close() call. The error message on s390x/rhel8 was: -------------------8<---------------------------------------------------- tapset-debuginfod.cxx:44:3: error: 'close' was not declared in this scope close(metadata_fd); ^~~~~ tapset-debuginfod.cxx:44:3: note: suggested alternative: 'pclose' close(metadata_fd); ^~~~~ pclose make[3]: *** [Makefile:1756: stap-tapset-debuginfod.o] Error 1 make[3]: *** Waiting for unfinished jobs.... -------------------8<---------------------------------------------------- --- tapset-debuginfod.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/tapset-debuginfod.cxx b/tapset-debuginfod.cxx index 7761b93ac..e83cf5c6c 100644 --- a/tapset-debuginfod.cxx +++ b/tapset-debuginfod.cxx @@ -15,6 +15,7 @@ #include #include +#include using namespace std; using namespace __gnu_cxx; -- 2.43.5