]> git.sesse.net Git - vlc/blobdiff - plugins/text/rc.c
* various little portability fixes
[vlc] / plugins / text / rc.c
index 3a43d5ff538c81764000608dfe804c6c1a588913..61e3b0816865521d1031fe6b89ad7e1117ae941b 100644 (file)
@@ -2,7 +2,7 @@
  * rc.c : remote control stdin/stdout plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: rc.c,v 1.10 2002/02/15 13:32:53 sam Exp $
+ * $Id: rc.c,v 1.11 2002/03/26 23:08:40 gbazin Exp $
  *
  * Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
  *
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include <videolan/vlc.h>
+
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <string.h>
 
 #include <errno.h>                                                 /* ENOMEM */
 #include <stdio.h>
 #include <ctype.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <sys/types.h>
 
-#include <videolan/vlc.h>
+#ifdef HAVE_UNISTD_H
+#    include <unistd.h>
+#endif
+
+#ifdef HAVE_SYS_TIME_H
+#    include <sys/time.h>
+#endif
+#include <sys/types.h>
 
 #if defined( WIN32 )
 #include <winsock2.h>                                            /* select() */