修复MSVC编译问题

This commit is contained in:
monktan89
2022-11-03 10:51:49 +08:00
parent 2b804514e1
commit 7e95bd2078
3 changed files with 12 additions and 7 deletions

View File

@@ -11,8 +11,10 @@
#ifndef ZLMEDIAKIT_PROCESS_H
#define ZLMEDIAKIT_PROCESS_H
#ifdef _WIN32
#if defined(_WIN32)
#if !defined(__MINGW32__)
typedef int pid_t;
#endif
#else
#include <sys/wait.h>
#endif // _WIN32