log: Open log file CLOEXEC so child processes don't get the fd

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
diff --git a/shared/os-compatibility.h b/shared/os-compatibility.h
index a12ac0b..06d2574 100644
--- a/shared/os-compatibility.h
+++ b/shared/os-compatibility.h
@@ -41,6 +41,9 @@
 #endif
 
 int
+os_fd_set_cloexec(int fd);
+
+int
 os_socketpair_cloexec(int domain, int type, int protocol, int *sv);
 
 int