summaryrefslogtreecommitdiff
path: root/common/gdm-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/gdm-common.h')
-rw-r--r--common/gdm-common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/gdm-common.h b/common/gdm-common.h
index 1a0c2583..7c72990a 100644
--- a/common/gdm-common.h
+++ b/common/gdm-common.h
@@ -23,8 +23,13 @@
#include <glib.h>
#include <pwd.h>
+#include <errno.h>
-#include "gdm-common-unknown-origin.h"
+#define VE_IGNORE_EINTR(expr) \
+ do { \
+ errno = 0; \
+ expr; \
+ } while G_UNLIKELY (errno == EINTR);
#define GDM_CUSTOM_SESSION "custom"