mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 07:49:16 -04:00
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
26 lines
925 B
C
26 lines
925 B
C
--- wmrecord.c.orig 1999-10-04 13:39:52 UTC
|
|
+++ wmrecord.c
|
|
@@ -320,7 +320,11 @@ void wmSetTrackNum(int inc) {
|
|
sprintf(q, "%s%s%02d.wav",pd->pw_dir, BASEFILE, tracknum);
|
|
/* Open the source file, where the recording has been stored. */
|
|
p = (char *)malloc(sizeof(char)*4);
|
|
+#ifdef __FreeBSD__
|
|
+ if ((fd=open(q, O_RDONLY))==-1)
|
|
+#else
|
|
if ((fd=open(q, O_RDONLY|O_SYNC))==-1)
|
|
+#endif
|
|
sprintf(p, "000");
|
|
else {
|
|
datalen = wmGetWavSettings(fd);
|
|
@@ -755,7 +759,11 @@ void wmPlay() {
|
|
pw = getpwuid(uid);
|
|
fres=(char *)malloc(sizeof(char)*(strlen(pw->pw_dir)+strlen(BASEFILE)+7));
|
|
sprintf(fres, "%s%s%02d.wav",pw->pw_dir, BASEFILE, tracknum);
|
|
+#ifdef __FreeBSD__
|
|
+ if ((fd=open(fres,O_RDONLY))==-1) {
|
|
+#else
|
|
if ((fd=open(fres,O_RDONLY|O_SYNC))==-1) {
|
|
+#endif
|
|
fprintf(stderr, "WMRECORD: Could not open source file.\n");
|
|
free(fres);
|
|
copyXPMArea (btn[2].x, btn[2].y, btn[2].w, btn[2].h,
|