*/
#ifdef __MINGW32__
-__declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
-// # include <windows.h>
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
# define usleep(t) Sleep((t) / 1000)
# include <fcntl.h>
# define lseek(f,p,w) _lseeki64((f), (p), (w))
# endif
#endif
+#ifdef CONFIG_NETWORK
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
struct pollfd {
int fd;
short events; /* events to look for */
- short revents; /* events that occured */
+ short revents; /* events that occurred */
};
/* events & revents */
extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
#endif /* HAVE_POLL_H */
#endif /* CONFIG_FFSERVER */
+#endif /* CONFIG_NETWORK */
#endif /* FFMPEG_OS_SUPPORT_H */