aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Yeo <dave.r.yeo@gmail.com>2012-05-23 13:34:13 -0700
committerMartin Storsjö <martin@martin.st>2012-05-23 10:38:14 +0300
commit3f9d6e423978f5e905def374e9c2e9166e3ebb2c (patch)
tree52f9de8c762358f01a291269300bd59ae5562edb
parente5773d8bc372a88b28452efa5fc87711f673bd28 (diff)
downloadffmpeg-3f9d6e423978f5e905def374e9c2e9166e3ebb2c.tar.gz
os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/os_support.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 1088c6c31c..3db20a9aa8 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -45,6 +45,12 @@ static inline int is_dos_path(const char *path)
return 0;
}
+#if defined(__OS2__)
+#define SHUT_RD 0
+#define SHUT_WR 1
+#define SHUT_RDWR 2
+#endif
+
#if defined(_WIN32)
#define SHUT_RD SD_RECEIVE
#define SHUT_WR SD_SEND