Support modular X11 path to rgb.txt patch by (Ville Skyttä - scop from SF-bugtracker)

Originally committed as revision 5429 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ville Skyttä 2006-05-30 09:21:58 +00:00 committed by Michael Niedermayer
parent 7f21a9a7b8
commit 22a0e90712
1 changed files with 3 additions and 1 deletions

View File

@ -144,6 +144,8 @@ int Configure(void **ctxp, int argc, char *argv[])
char buff[256];
int done = 0;
f = fopen("/usr/share/X11/rgb.txt", "r");
if (!f)
f = fopen("/usr/lib/X11/rgb.txt", "r");
if (!f) {
fprintf(stderr, "Failed to find rgb.txt\n");