aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/proc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/proc.cpp')
-rw-r--r--src/proc.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/proc.cpp b/src/proc.cpp
index 7caf2d6c..0a0da0a8 100644
--- a/src/proc.cpp
+++ b/src/proc.cpp
@@ -18,27 +18,16 @@ Some of the code in this file is based on code from the Glibc manual.
#include <string.h>
#include <errno.h>
#include <termios.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <pthread.h>
+#include <wctype.h>
#include <algorithm>
-
-#ifdef HAVE_SYS_IOCTL_H
-#include <sys/ioctl.h>
-#endif
+#include <memory> // IWYU pragma: keep - suggests <tr1/memory> instead
+#include <vector>
#include <unistd.h>
#include <signal.h>
-#include <dirent.h>
#include <sys/time.h>
-#if HAVE_NCURSES_H
-#include <ncurses.h>
-#elif HAVE_NCURSES_CURSES_H
-#include <ncurses/curses.h>
-#else
-#include <curses.h>
-#endif
-
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
@@ -53,7 +42,7 @@ Some of the code in this file is based on code from the Glibc manual.
#include <sys/select.h>
#endif
-#include "fallback.h"
+#include "fallback.h" // IWYU pragma: keep
#include "util.h"
#include "wutil.h"
@@ -61,7 +50,6 @@ Some of the code in this file is based on code from the Glibc manual.
#include "common.h"
#include "reader.h"
#include "sanity.h"
-#include "env.h"
#include "parser.h"
#include "signal.h"
#include "event.h"