libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-devel] read.h needs unistd.h


From: Steven M. Schultz
Subject: [Libcdio-devel] read.h needs unistd.h
Date: Thu, 19 Jan 2006 10:53:45 -0800 (PST)

Hi

        Was building another project that uses libcdio (MPlayer in this case)
        and ran into a problem:

gmake -C libmpdemux
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=970 -mtune=970 
-faltivec -D__APPLE_ALTIVEC__ -pipe -ffast-math -fomit-frame-pointer 
-mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.. -I../loader    -I../libavutil 
-I../libavcodec -I../libavformat    -o cdinfo.o cdinfo.c
In file included from /usr/local/include/cdio/cdio.h:77,
                 from /usr/local/include/cdio/cdda.h:32,
                 from cdd.h:9,
                 from cdinfo.c:16:
/usr/local/include/cdio/read.h:54: error: parse error before "cdio_lseek"
/usr/local/include/cdio/read.h:54: error: parse error before "off_t"
In file included from cdd.h:10,
                 from cdinfo.c:16:
/usr/local/include/cdio/paranoia.h:104: error: parse error before "off_t"

        off_t isn't in scope.  Trivial fix (patch attached) is to include
        <unistd.h> so that programs which include "read.h" are happy.

        Cheers,
        Steven Schultz

Attachment: p
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]