On 11/24/18 04:37 AM, Peter Ross wrote:
---
two more patches concerning networking.
i will push the other existing djgpp patches soon.
libavformat/os_support.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 7a56dc9a7c..3c3e37fb7c 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -76,7 +76,7 @@ static inline int is_dos_path(const char *path)
return 0;
}
-#if defined(__OS2__)
+#if defined(__OS2__) || defined(__DJGPP__)
#define SHUT_RD 0
#define SHUT_WR 1
#define SHUT_RDWR 2
Perhaps, for future proofing
-#if defined(__OS2__)
+#if !defined(SHUT_RD)
#define SHUT_RD 0
#define SHUT_WR 1
#define SHUT_RDWR 2
Works fine here on OS/2 and these macros may be added to the headers at
some point.
Dave
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel