Bug 48231 - patch for timidity
Summary: patch for timidity
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Norikatsu Shigemura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 06:20 UTC by arlankfo
Modified: 2003-02-13 13:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arlankfo 2003-02-13 06:20:06 UTC
     because the strings header file is left out of several source files,
     port does not compile

Fix: 

Save the following to /usr/ports/audio/timidity/files/patch-r0.2i:

--- common.c	2003/02/08 01:42:31	1.1
+++ common.c	2003/02/08 01:53:36
@@ -24,7 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#if defined(SOLARIS) || defined(__WIN32__)
+#if defined(SOLARIS) || defined(__WIN32__) || defined(__FreeBSD__)
 #include <string.h>
 #else
 #include <strings.h>
--- instrum.c	2003/02/08 01:42:31	1.1
+++ instrum.c	2003/02/08 01:53:50
@@ -25,7 +25,7 @@
 
 #include <stdio.h>
 
-#if defined(SOLARIS) || defined(__WIN32__)
+#if defined(SOLARIS) || defined(__WIN32__) || defined(__FreeBSD__)
 #include <string.h>
 #else
 #include <strings.h>
--- playmidi.c	2003/02/08 01:42:31	1.1
+++ playmidi.c	2003/02/08 01:54:18
@@ -27,7 +27,7 @@
 #endif
 #include <stdlib.h>
 
-#if defined(SOLARIS) || defined(__WIN32__)
+#if defined(SOLARIS) || defined(__WIN32__) || defined(__FreeBSD__)
 # include <string.h>
 #else
 #include <strings.h>
--- raw_a.c	2003/02/08 01:42:31	1.1
+++ raw_a.c	2003/02/08 01:54:38
@@ -35,6 +35,7 @@
 
 #ifdef __FreeBSD__
 #include <stdio.h>
+#include <string.h>
 #endif
 
 #include "config.h"
--- readmidi.c	2003/02/08 01:42:31	1.1
+++ readmidi.c	2003/02/08 01:53:19
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <errno.h>
 
-#if defined(SOLARIS) | defined(__WIN32__)
+#if defined(SOLARIS) || defined(__WIN32__) || defined(__FreeBSD__)
 # include <string.h>
 #else
 #include <strings.h>
--- timidity.c	2003/02/08 01:42:31	1.1
+++ timidity.c	2003/02/08 01:54:51
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#if defined(SOLARIS) || defined(__WIN32__)
+#if defined(SOLARIS) || defined(__WIN32__) || defined(__FreeBSD__)
 #include <string.h>
 #else
 #include <strings.h>
--- wav2pat.c	2003/02/08 01:42:31	1.1
+++ wav2pat.c	2003/02/08 01:55:29
@@ -28,7 +28,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__FreeBSD__)
 #include <string.h>
 #else
 #include <strings.h>
--- wave_a.c	2003/02/08 01:42:31	1.1
+++ wave_a.c	2003/02/08 01:55:45
@@ -35,6 +35,7 @@
 
 #ifdef __FreeBSD__
 #include <stdio.h>
+#include <string.h>
 #endif
 
 #include "config.h"
How-To-Repeat: 
     attempt build of port.
Comment 1 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-02-13 06:27:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nork

I'll handle this.
Comment 2 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-02-13 13:10:53 UTC
State Changed
From-To: open->closed

Committed, thanks!