From 4e5cea86c29508c24bf6f5539eeddd388abfde0a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 12 Apr 2014 20:13:07 +0200 Subject: client API: add mpv_get_wakeup_pipe convenience function Should make integreating with some event loops easier. Untested. --- osdep/io.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'osdep/io.h') diff --git a/osdep/io.h b/osdep/io.h index 5fa36abb1e..4cb16677f2 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -34,6 +34,9 @@ #ifndef O_CLOEXEC #define O_CLOEXEC 0 #endif +#ifndef FD_CLOEXEC +#define FD_CLOEXEC 0 +#endif bool mp_set_cloexec(int fd); -- cgit v1.2.3