Commit b4b78fb6 authored by Gildas Bazin's avatar Gildas Bazin

* configure.ac: the telnet module needs -lws2_32 on win32.

* modules/control/telnet/vlm.c: include <time.h>.
parent e04ea111
...@@ -146,7 +146,7 @@ case "${target_os}" in ...@@ -146,7 +146,7 @@ case "${target_os}" in
# add ws2_32 for closesocket, select, recv # add ws2_32 for closesocket, select, recv
CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long"; CPPFLAGS="${CPPFLAGS_save}" CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long"; CPPFLAGS="${CPPFLAGS_save}"
AX_ADD_LDFLAGS([vlc],[-lws2_32 -lnetapi32 -lwinmm -mwindows]) AX_ADD_LDFLAGS([vlc],[-lws2_32 -lnetapi32 -lwinmm -mwindows])
AX_ADD_LDFLAGS([ipv4 ipv6 access_http access_mms access_udp access_tcp access_ftp access_output_udp sap slp http stream_out_standard],[-lws2_32]) AX_ADD_LDFLAGS([ipv4 ipv6 access_http access_mms access_udp access_tcp access_ftp access_output_udp sap slp http stream_out_standard telnet],[-lws2_32])
fi fi
;; ;;
*nto*) *nto*)
......
/***************************************************************************** /*****************************************************************************
* .c: VLM interface plugin * vlm.c: VLM interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * Copyright (C) 2000, 2001 VideoLAN
* $Id$ * $Id$
...@@ -32,8 +32,15 @@ ...@@ -32,8 +32,15 @@
#include <vlc/input.h> #include <vlc/input.h>
#ifdef HAVE_TIME_H
# include <time.h> /* ctime() */
#endif
#include "vlm.h" #include "vlm.h"
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
static char *vlm_Save( vlm_t * ); static char *vlm_Save( vlm_t * );
static int vlm_Load( vlm_t *, char *); static int vlm_Load( vlm_t *, char *);
static vlm_media_t *vlm_MediaNew( vlm_t *, char *, int ); static vlm_media_t *vlm_MediaNew( vlm_t *, char *, int );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment