diff options
author | bapt <bapt@FreeBSD.org> | 2016-05-23 00:15:38 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-05-23 00:15:38 +0800 |
commit | 7e883c66d0a7270835b98905e437cc363d1603d7 (patch) | |
tree | ec44686f27f026817e7f2302edcf972ff661ff51 /audio | |
parent | f8d68f98b5ef94f78b2ea240573c73012a399031 (diff) | |
download | freebsd-ports-gnome-7e883c66d0a7270835b98905e437cc363d1603d7.tar.gz freebsd-ports-gnome-7e883c66d0a7270835b98905e437cc363d1603d7.tar.zst freebsd-ports-gnome-7e883c66d0a7270835b98905e437cc363d1603d7.zip |
Prevent collision with getline(3)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/cmp3/files/patch-cmp3common.c | 18 | ||||
-rw-r--r-- | audio/cmp3/files/patch-cmp3funcs.h | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/audio/cmp3/files/patch-cmp3common.c b/audio/cmp3/files/patch-cmp3common.c new file mode 100644 index 000000000000..e77e883d8e56 --- /dev/null +++ b/audio/cmp3/files/patch-cmp3common.c @@ -0,0 +1,18 @@ +--- cmp3common.c.orig 2001-06-13 20:13:13 UTC ++++ cmp3common.c +@@ -102,7 +102,7 @@ int Strncmp(const char *str1, /* Firs + return(i); + } + +-int getline(char *var, /* Buffer to copy line into */ ++int get_line(char *var, /* Buffer to copy line into */ + int maxbuf, /* MAX to send to fgets */ + FILE *input /* File descriptor to get line from */) + { +@@ -142,4 +142,4 @@ void *Malloc(size_t size) + } + + +-/* EOF */ +\ No newline at end of file ++/* EOF */ diff --git a/audio/cmp3/files/patch-cmp3funcs.h b/audio/cmp3/files/patch-cmp3funcs.h new file mode 100644 index 000000000000..14b95fb3f2f0 --- /dev/null +++ b/audio/cmp3/files/patch-cmp3funcs.h @@ -0,0 +1,18 @@ +--- cmp3funcs.h.orig 2001-06-13 20:13:27 UTC ++++ cmp3funcs.h +@@ -64,7 +64,7 @@ extern Sigfunc *Signal(int signo, Sigfun + extern char *Strdup(const char *string); + extern int Strcmp(const char *str1, const char *str2); + extern int Strncmp(const char *str1, const char *str2, int num); +-extern int getline(char *var, int maxbuf, FILE *input); ++extern int get_line(char *var, int maxbuf, FILE *input); + + extern void *Malloc(size_t size); + +@@ -86,4 +86,4 @@ extern void voldown(); + /* cmp3id3.c */ + extern int readid3(id3info_t *songinfo, char *songfilename); + +-/* EOF */ +\ No newline at end of file ++/* EOF */ |