aboutsummaryrefslogtreecommitdiffstats
path: root/src/linux/console.c
diff options
context:
space:
mode:
authorandryblack <blackicebox@gmail.com>2020-04-24 00:16:31 +0300
committerKevinOConnor <kevin@koconnor.net>2020-05-17 22:17:15 -0400
commit8fd330c54e702719301072357c3db591eb16d489 (patch)
treea4ce01b16b2f1d5df8609fa3c82557d52f365a12 /src/linux/console.c
parentf0c394de8111ff7d498efd2e947d1d36788a9ad3 (diff)
downloadkutter-8fd330c54e702719301072357c3db591eb16d489.tar.gz
kutter-8fd330c54e702719301072357c3db591eb16d489.tar.xz
kutter-8fd330c54e702719301072357c3db591eb16d489.zip
linux: userspace GPIO control
Allow use host GPIO pins for non-realtime purposes. Signed-off-by: Andrey Kunitsyn <blackicebox@gmail.com>
Diffstat (limited to 'src/linux/console.c')
-rw-r--r--src/linux/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/console.c b/src/linux/console.c
index 4afa6151..1c02b7a1 100644
--- a/src/linux/console.c
+++ b/src/linux/console.c
@@ -53,7 +53,7 @@ set_non_blocking(int fd)
return 0;
}
-static int
+int
set_close_on_exec(int fd)
{
int ret = fcntl(fd, F_SETFD, FD_CLOEXEC);