[MPlayer-users] [PATCH] libgen.h doesn't exist everywhere
Steven M. Schultz
sms at 2BSD.COM
Mon Jan 6 01:02:25 CET 2003
Hi -
gmake[1]: Entering directory `/usr/local/src/MPlayer-cvs/libmpdemux'
gcc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../loader -I-I/usr/local/include -I/usr/local/include/dvdnav -g -O2 -I/usr/local/include -L/usr/local/lib -D_THREAD_SAFE -o cue_read.o cue_read.c
cue_read.c:11: libgen.h: No such file or directory
cue_read.c: In function `cue_read_cue':
cue_read.c:294: warning: assignment makes pointer from integer without a cast
gmake[1]: *** [cue_read.o] Error 1
gmake[1]: Leaving directory `/usr/local/src/MPlayer-cvs/libmpdemux'
gmake: *** [libmpdemux/libmpdemux.a] Error 2
I've run into this before with other programs and not including
libgen.h has fixed the problem.
Here's what's worked in the past and how I moved on to the next
problem ;)
Steven
--- libmpdemux/cue_read.c.dist Sun Jan 5 15:51:05 2003
+++ libmpdemux/cue_read.c Sun Jan 5 15:58:26 2003
@@ -8,7 +8,9 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
+#ifdef __linux__
#include <libgen.h>
+#endif
#include "config.h"
#include "mp_msg.h"
More information about the MPlayer-users
mailing list