summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c5
-rw-r--r--src/ratpoison.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index bedba19..c046d30 100644
--- a/src/main.c
+++ b/src/main.c
@@ -356,6 +356,11 @@ print_help (void)
exit (EXIT_SUCCESS);
}
+/* Some systems don't define the close-on-exec flag in fcntl.h */
+#ifndef FD_CLOEXEC
+# define FD_CLOEXEC 1
+#endif
+
void
set_close_on_exec (FILE *fd)
{
diff --git a/src/ratpoison.h b/src/ratpoison.h
index f517b5d..a375957 100644
--- a/src/ratpoison.h
+++ b/src/ratpoison.h
@@ -33,11 +33,6 @@
#include <X11/Xlocale.h>
#include <fcntl.h>
-/* Some systems don't define the close-on-exec flag in fcntl.h */
-#ifndef FD_CLOEXEC
-# define FD_CLOEXEC 1
-#endif
-
/* Helper macro for error and debug reporting. */
#define PRINT_LINE(type) printf (PACKAGE ":%s:%d: %s: ",__FILE__, __LINE__, #type)