os: define SOCK_CLOEXEC on Linux
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 23 Apr 2012 09:10:45 +0000 (12:10 +0300)
committerPekka Paalanen <ppaalanen@gmail.com>
Wed, 25 Apr 2012 06:32:57 +0000 (09:32 +0300)
commit3b29783dc8f0e856afce7a9edf10c0ca4d12f284
tree9f5e1bc98cadea11f2a5ed1f2fb6b488acd61443
parent1f827a477607d0a9dc9520fc6c53c936befb663d
os: define SOCK_CLOEXEC on Linux

If it's not already defined, and we are on Linux, #define it. This gets
rid of a load of #ifdefs. This should also allow to use it when the
kernel supports it, but the libc does not define it.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/wayland-os.c
src/wayland-os.h
tests/os-wrappers-test.c