diff options
author | Michael 'ASAP' Weinrich <michael@a5ap.net> | 2024-02-15 20:17:08 -0800 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2024-04-03 22:53:09 -0400 |
commit | 6f16e111977d0aa68fb4c6362509cec07a94115c (patch) | |
tree | 66f68b92e074d84d12ba0978082444cce7aedf0c | |
parent | 24c884e9f393fa42c37e38d12d3cedb1adb23776 (diff) | |
download | kutter-6f16e111977d0aa68fb4c6362509cec07a94115c.tar.gz kutter-6f16e111977d0aa68fb4c6362509cec07a94115c.tar.xz kutter-6f16e111977d0aa68fb4c6362509cec07a94115c.zip |
linux: Don't use absolute paths for include
Not all systems (i.e. Nix) repect the standard Linux filesystem hierarchy,
instead relative paths should be used and allowing GCC to rely on it's
builtin search paths.
Signed-off-by: Michael 'ASAP' Weinrich <michael@a5ap.net>
-rw-r--r-- | src/linux/gpio.c | 2 | ||||
-rw-r--r-- | src/linux/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/gpio.c b/src/linux/gpio.c index bb07f5a0..c7f4c5bf 100644 --- a/src/linux/gpio.c +++ b/src/linux/gpio.c @@ -10,7 +10,7 @@ #include <string.h> // memset #include <sys/ioctl.h> // ioctl #include <unistd.h> // close -#include </usr/include/linux/gpio.h> // GPIOHANDLE_REQUEST_OUTPUT +#include <linux/gpio.h> // GPIOHANDLE_REQUEST_OUTPUT #include "command.h" // shutdown #include "gpio.h" // gpio_out_write #include "internal.h" // report_errno diff --git a/src/linux/main.c b/src/linux/main.c index f9ea3f6d..b260f162 100644 --- a/src/linux/main.c +++ b/src/linux/main.c @@ -4,7 +4,7 @@ // // This file may be distributed under the terms of the GNU GPLv3 license. -#include </usr/include/sched.h> // sched_setscheduler sched_get_priority_max +#include <sched.h> // sched_setscheduler sched_get_priority_max #include <stdio.h> // fprintf #include <string.h> // memset #include <unistd.h> // getopt |