In order to compile acpi_call follow these steps:
Install libelf-devel and linux-current-headers or linux-lts-headers depending on your kernel version.
Run the following command:
sudo eopkg install -c system.devel
Clone or get the .zip of the repository: https://github.com/mkottman/acpi_call.
Extract if you downloaded .zip.
Open acpi_call.c in text editor.
Replace #include <acpi/acpi.h> with #include <linux/acpi.h>.
Replace #include <asm/uaccess.h> with #include <linux/uaccess.h>.
Open a terminal in the directory where you extracted the files.
Run these commands in order:
make
sudo make install