mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
Remove unneeded includes
This commit is contained in:
@ -39,14 +39,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "ini.h"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <linux/limits.h>
|
||||
#include <pthread.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/inotify.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
/* Name and possible location of the config file */
|
||||
#define CONFIG_NAME "gamemode.ini"
|
||||
|
@ -35,6 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "common-governors.h"
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
|
||||
@ -42,11 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
#include <stdatomic.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <systemd/sd-daemon.h>
|
||||
#include <systemd/sd-daemon.h> /* TODO: Move usage to gamemode-dbus.c */
|
||||
#include <unistd.h>
|
||||
|
||||
/**
|
||||
|
@ -34,8 +34,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "common-logging.h"
|
||||
#include "gamemode.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <systemd/sd-bus.h>
|
||||
#include <systemd/sd-daemon.h>
|
||||
|
||||
|
@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "common-gpu.h"
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
|
||||
|
@ -37,10 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "gamemode.h"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/**
|
||||
* Define the syscall interface in Linux because it is missing from glibc
|
||||
|
@ -36,10 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "gamemode.h"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <sched.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
|
@ -36,16 +36,14 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "common-gpu.h"
|
||||
#include "common-helpers.h"
|
||||
#include "common-logging.h"
|
||||
|
||||
#include "gamemode-config.h"
|
||||
#include "gamemode.h"
|
||||
#include "gamemode_client.h"
|
||||
|
||||
#include <libgen.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
struct GameModeConfig;
|
||||
|
||||
|
@ -37,12 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#include <linux/limits.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/**
|
||||
* Detect if the process is a wine preloader process
|
||||
|
@ -32,7 +32,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#define INVALID_PROCFD -1
|
||||
|
||||
|
@ -60,11 +60,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <fcntl.h>
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <systemd/sd-daemon.h>
|
||||
#include <systemd/sd-daemon.h> /* TODO: Move usage to gamemode-dbus.c */
|
||||
#include <unistd.h>
|
||||
|
||||
#define USAGE_TEXT \
|
||||
|
Reference in New Issue
Block a user