Skip to content

Commit

Permalink
linux: Don't use absolute paths for include
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MadnessASAP committed Feb 16, 2024
1 parent 1a1284d commit d594716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/linux/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/linux/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d594716

Please sign in to comment.