#501 closed defect (fixed)
vobsub.c fails while compiling. + patch
Reported by: | Owned by: | reimar | |
---|---|---|---|
Priority: | normal | Component: | core |
Version: | 1.0pre7 | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
if USE_UNRARLIB is defined, vobsub.c could not compile.
log:
cc -c -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4 -march=pentium3
-mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I/usr/include/freetype2
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11/include
-I/usr/X11R6/include -I/usr/include/ -o vobsub.o vobsub.c
vobsub.c:231: error: conflicting types for `getline'
/usr/include/bits/stdio.h:103: error: previous declaration of `getline'
make: * [vobsub.o] Error 1
couse:
_GNU_SOURCE is defined
getline function is defined in bits/stdio.h
getline function is defined static in vobsub.c with different parametre type
solution:
--- vobsub.c.org 2006-05-20 05:53:04.000000000 +0300
+++ vobsub.c 2006-05-20 05:53:29.000000000 +0300
@@ -227,7 +227,7 @@
//
static ssize_t
-getline(char lineptr, size_t *n, rar_stream_t *stream)
+vobsub_getline(char lineptr, size_t *n, rar_stream_t *stream)
{
size_t res = 0;
int c;
@@ -949,7 +949,7 @@
size_t line_reserve = 0;
char *line = NULL;
do {
- line_size = getline(&line, &line_reserve, fd);
+ line_size = vobsub_getline(&line, &line_reserve, fd);
if (line_size < 0) {
break;
}
regards.
alper akcan "anhanguera"
Attachments (1)
Change History (4)
by , 18 years ago
Attachment: | vobsub.c.diff added |
---|
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Summary: | vobsub.c fails while compiling. → vobsub.c fails while compiling. + patch |
---|
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in CVS (well, SVN now) for a long time.
patch file for #501