linux: fix build on older distros

This commit is contained in:
Ben Noordhuis 2012-01-09 15:42:56 +01:00
parent 38fc6ad839
commit 803f5a096e

View File

@ -59,6 +59,18 @@
# define HAVE_SYS_ACCEPT4 1
# endif
# ifndef O_CLOEXEC
# define O_CLOEXEC 02000000
# endif
# ifndef SOCK_CLOEXEC
# define SOCK_CLOEXEC O_CLOEXEC
# endif
# ifndef SOCK_NONBLOCK
# define SOCK_NONBLOCK O_NONBLOCK
# endif
# if HAVE_SYS_UTIMESAT
inline static int sys_utimesat(int dirfd,
const char* path,