diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 00:25:56 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 00:25:56 +0100 |
commit | 2eeac71c8f4af60bf760ec6f0ad228c1cb4c0b4b (patch) | |
tree | 0dc467f73e2c56cefcac73228bac22a51ed7d5a8 /src/main.c | |
parent | eb524d8b80a72c04c9e7381b6c8bad6e4f7e3b52 (diff) | |
download | ratpoison-2eeac71c8f4af60bf760ec6f0ad228c1cb4c0b4b.zip |
FD_CLOEXEC is only used in set_close_on_exec().
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |