[MPlayer-dev-eng] [PATCH] Support for MOV-Reference Files

Steven M. Schultz sms at 2BSD.COM
Tue Jan 14 05:08:48 CET 2003


> From: Diego Biurrun <diego at biurrun.de>
> 
> FabianFranz at gmx.de (Fabian Franz) writes:
>  > For this and t hat is one drawback of the patch it uses basename, which needs 
>  > libgen.h which is only available on linux-systems ...
> 
> This, BTW, is the reason that --enable-menu fails to compile on
> Cygwin.  Does it work on some other non-Linux platform?

	Didn't we just go thru something like this recently?   I remember
	dirname() (and libgen.h) causing me a problem.   The fix then was
	to remove the reference to libgen.h and use inline code based on
	strrchr()

	For basename() would something like this work instead?

		#include <string.h>

		cp = strrchr(buf, '/');
		if (!cp)
		   cp = buf;
		else
		    cp++;

	Cheers,
	Steven Schultz


More information about the MPlayer-dev-eng mailing list