- Fix build with clang

This commit is contained in:
Dennis Herrmann 2011-06-21 19:08:45 +00:00
parent 0f7765c494
commit 6f6e258b97
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276024
2 changed files with 14 additions and 0 deletions

View file

@ -22,6 +22,9 @@ PLIST_FILES= bin/cutmp3
PORTDOCS= README README.timetable USAGE
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}

View file

@ -0,0 +1,11 @@
--- ./Mix.c.orig 2011-06-21 21:06:03.000000000 +0200
+++ ./Mix.c 2011-06-21 21:06:53.000000000 +0200
@@ -78,7 +78,7 @@
#ifdef DEBUG
fprintf(stderr, "close_mixer()\n");
#endif
- if (mixer_fd < 0) return;
+ if (mixer_fd < 0) return 0;
close(mixer_fd);
init_flag = 0;
mixer_fd = -1;