diff options
author | Karel Zak | 2011-02-11 10:49:50 +0100 |
---|---|---|
committer | Karel Zak | 2011-02-11 10:49:50 +0100 |
commit | 4799c95f943bd947c02f754da121974b4b34697d (patch) | |
tree | 5acde49f1e3f2d5e01b2843152a74efe36591921 /include/c.h | |
parent | libmount: add fallbacks for old systems without umount2() syscall (diff) | |
download | kernel-qcow2-util-linux-4799c95f943bd947c02f754da121974b4b34697d.tar.gz kernel-qcow2-util-linux-4799c95f943bd947c02f754da121974b4b34697d.tar.xz kernel-qcow2-util-linux-4799c95f943bd947c02f754da121974b4b34697d.zip |
include: [c.h]: add fallback for old libs without O_CLOEXEC
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h index e52514345..815463881 100644 --- a/include/c.h +++ b/include/c.h @@ -149,5 +149,9 @@ prog_inv_sh_nm_from_file(char *f, char stripext) # endif #endif +/* very old glibc (2.3) */ +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif #endif /* UTIL_LINUX_C_H */ |