Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 063b4a9050ec537f7d7e00a255381275 > files > 5

libofa-0.9.3-19.mga5.src.rpm

diff -Naurp libofa-0.9.3/examples/example.cpp libofa-0.9.3.oden/examples/example.cpp
--- libofa-0.9.3/examples/example.cpp	2006-05-10 14:05:37.000000000 -0400
+++ libofa-0.9.3.oden/examples/example.cpp	2008-06-28 17:19:42.000000000 -0400
@@ -7,6 +7,7 @@
 
 -------------------------------------------------------------------*/
 
+#include <string.h>
 #include "protocol.h"
 
 AudioData* loadWaveFile(char *file);
diff -Naurp libofa-0.9.3/examples/protocol.cpp libofa-0.9.3.oden/examples/protocol.cpp
--- libofa-0.9.3/examples/protocol.cpp	2006-05-10 14:05:42.000000000 -0400
+++ libofa-0.9.3.oden/examples/protocol.cpp	2008-06-28 17:19:42.000000000 -0400
@@ -6,6 +6,7 @@
    No rights reserved.
 
 -------------------------------------------------------------------*/
+#include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string>
diff -Naurp libofa-0.9.3/lib/signal_op.cpp libofa-0.9.3.oden/lib/signal_op.cpp
--- libofa-0.9.3/lib/signal_op.cpp	2006-05-10 14:01:12.000000000 -0400
+++ libofa-0.9.3.oden/lib/signal_op.cpp	2008-06-28 17:19:42.000000000 -0400
@@ -12,6 +12,8 @@
 // DATE CREATED: 1/12/06
 
 
+#include <stdlib.h>
+#include <inttypes.h>
 #include <math.h>
 #include "signal_op.h"
 #include "AFLIB/aflibConverter.h"
Index: libofa-0.9.3/examples/protocol.cpp
===================================================================
--- libofa-0.9.3/examples/protocol.cpp
+++ libofa-0.9.3/examples/protocol.cpp	2009-05-26 15:21:22.000000000 +0200
@@ -171,7 +171,7 @@
 
     err = string(XML_ErrorString(XML_GetErrorCode(parser)));
     char num[10];
-    sprintf(num, "%d", XML_GetCurrentLineNumber(parser));
+    sprintf(num, "%d", (int)XML_GetCurrentLineNumber(parser));
     err += string(" on line ") + string(num);
     XML_ParserFree(parser);
 
Index: libofa-0.9.3/examples/example.cpp
===================================================================
--- libofa-0.9.3/examples/example.cpp
+++ libofa-0.9.3/examples/example.cpp	2009-05-26 15:35:37.000000000 +0200
@@ -8,6 +8,7 @@
 -------------------------------------------------------------------*/
 
 #include <string.h>
+#include <cstdio>
 #include "protocol.h"
 
 AudioData* loadWaveFile(char *file);
diff -p -up libofa-0.9.3/examples/uselame.cpp.gcc libofa-0.9.3/examples/uselame.cpp
--- libofa-0.9.3/examples/uselame.cpp.gcc	2012-12-12 12:38:27.381827032 +0100
+++ libofa-0.9.3/examples/uselame.cpp	2012-12-12 12:40:59.631296767 +0100
@@ -12,6 +12,7 @@
 #else
 #include <sys/wait.h>
 #endif
+#include <unistd.h>
 
 AudioData *loadWaveFile(char *file);
 
diff -p -up libofa-0.9.3/examples/wavefile.cpp.gcc libofa-0.9.3/examples/wavefile.cpp
--- libofa-0.9.3/examples/wavefile.cpp.gcc	2012-12-12 12:38:21.515848746 +0100
+++ libofa-0.9.3/examples/wavefile.cpp	2012-12-12 12:41:04.842279535 +0100
@@ -11,6 +11,8 @@
 #include "io.h"
 #endif
 #include <fcntl.h>
+#include <sys/types.h>
+#include <unistd.h>
 
 static bool readBytes(int fd, unsigned char *buf, int size) {
     int ct = 0;