aboutsummaryrefslogtreecommitdiffstats
path: root/src/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/security.c')
-rw-r--r--src/security.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/security.c b/src/security.c
index 180e2f3..ff67d95 100644
--- a/src/security.c
+++ b/src/security.c
@@ -23,6 +23,7 @@
#include <fcntl.h>
#include <signal.h>
#include <stropts.h>
+#include <errno.h>
#if defined(OWN_VCSA) || defined(OWN_VCS)
#include <string.h>
#include <linux/vt.h>
@@ -33,6 +34,9 @@
#include "security.h"
+#define close(fd) while (((close)(fd) < 0) && (errno == EINTR))
+
+
static void fail(const char* str)
{
perror(str);