* configure.in: added -lintl to plugins_LDFLAGS.
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
+ plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
else
echo "$ac_t""no" 1>&6
fi
AC_CHECK_LIB(resolv,inet_aton,ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv")
])
AC_CHECK_FUNC(textdomain,,[
- AC_CHECK_LIB(intl,textdomain,vlc_LDFLAGS="${vlc_LDFLAGS} -lintl")
+ AC_CHECK_LIB(intl,textdomain,
+ vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
+ plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
+ )
])
dnl Check for getopt
* darwin_specific.h: Darwin specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: darwin_specific.h,v 1.3 2002/04/02 23:43:57 gbazin Exp $
+ * $Id: darwin_specific.h,v 1.4 2002/07/02 22:07:02 jlj Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
* Prototypes
*****************************************************************************/
char * system_GetProgramPath( void );
+extern char *strndup( const char *string, size_t n );
* darwin_specific.c: Darwin specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: darwin_specific.c,v 1.12 2002/06/02 14:26:16 gbazin Exp $
+ * $Id: darwin_specific.c,v 1.13 2002/07/02 22:07:02 jlj Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
param.sched_priority = 10;
if (pthread_setschedparam(pthread_self(), SCHED_RR, ¶m))
{
- intf_ErrMsg("pthread_setschedparam failed");
+ msg_Err( p_this, "pthread_setschedparam failed" );
}
}
}
return( psz_program_path );
}
+/*****************************************************************************
+ * strndup: returns a malloc'd copy of at most n bytes of string
+ * Does anyone know whether or not it will be present in Jaguar?
+ *****************************************************************************/
+char *strndup( const char *string, size_t n )
+{
+ char *psz;
+ size_t len;
+
+ len = __MIN( strlen( string ), n );
+ psz = (char*)malloc( len + 1 );
+
+ if( psz != NULL )
+ {
+ memcpy( (void*)psz, (const void*)string, len );
+ psz[ len ] = 0;
+ }
+
+ return( psz );
+}
* thread, and destroy a previously oppened video output thread.
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: video_output.c,v 1.185 2002/06/11 09:44:22 gbazin Exp $
+ * $Id: video_output.c,v 1.186 2002/07/02 22:07:02 jlj Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
#include "video.h"
#include "video_output.h"
+#if defined( SYS_DARWIN )
+#include "darwin_specific.h"
+#endif
+
/*****************************************************************************
* Local prototypes
*****************************************************************************/