aboutsummaryrefslogtreecommitdiffstats
path: root/audio/rio/files
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-09-20 10:19:51 +0800
committersteve <steve@FreeBSD.org>1999-09-20 10:19:51 +0800
commitb1950503fdae1697928101affc99d31c7220fbdb (patch)
tree63bc4f2165272af1dfb0b421296a79d19484561f /audio/rio/files
parentc9a6aea160795be32319b2aea4b7a02ee395bb2c (diff)
downloadfreebsd-ports-gnome-b1950503fdae1697928101affc99d31c7220fbdb.tar.gz
freebsd-ports-gnome-b1950503fdae1697928101affc99d31c7220fbdb.tar.zst
freebsd-ports-gnome-b1950503fdae1697928101affc99d31c7220fbdb.zip
Use time_t instead of long when call time functions. Also add '-lio'
on FreeBSD/Alpha.
Diffstat (limited to 'audio/rio/files')
-rw-r--r--audio/rio/files/patch-aa27
-rw-r--r--audio/rio/files/patch-ac29
2 files changed, 51 insertions, 5 deletions
diff --git a/audio/rio/files/patch-aa b/audio/rio/files/patch-aa
index afd3b1dc93dc..48f9f07f7d3e 100644
--- a/audio/rio/files/patch-aa
+++ b/audio/rio/files/patch-aa
@@ -1,10 +1,10 @@
-*** app.cpp Mon Feb 1 17:55:34 1999
---- rio.bsd/app.cpp Sat Feb 6 21:00:07 1999
+*** app.cpp.orig Mon Mar 15 06:53:16 1999
+--- app.cpp Sat Sep 18 15:13:44 1999
***************
-*** 27,32 ****
---- 27,39 ----
- #include <stdlib.h>
+*** 30,35 ****
+--- 30,42 ----
#define SIZE_MAXPATH _MAX_PATH
+ #define DELETEARRAY delete[]
+ #elif defined(__FreeBSD__)
+ // FreeBSD g++
@@ -16,3 +16,20 @@
#elif defined(__linux__)
// linux g++
#include <unistd.h>
+***************
+*** 81,87 ****
+ {
+ static char szBuf[ 64 ];
+ struct tm* psDateTime;
+! psDateTime = localtime( &lValue );
+
+ if ( !psDateTime )
+ strcpy( szBuf, "INVALID DATE/TIME" );
+--- 88,94 ----
+ {
+ static char szBuf[ 64 ];
+ struct tm* psDateTime;
+! psDateTime = localtime( (time_t *)&lValue );
+
+ if ( !psDateTime )
+ strcpy( szBuf, "INVALID DATE/TIME" );
diff --git a/audio/rio/files/patch-ac b/audio/rio/files/patch-ac
new file mode 100644
index 000000000000..a9a41b5e163e
--- /dev/null
+++ b/audio/rio/files/patch-ac
@@ -0,0 +1,29 @@
+*** makefile.orig Sat Sep 18 15:19:53 1999
+--- makefile Sat Sep 18 15:20:20 1999
+***************
+*** 6,15 ****
+ #
+ ###############################################################################
+
+ all: rio
+
+ rio: app.cpp rio.cpp
+! g++ -O1 -o rio app.cpp rio.cpp
+ chmod +s rio
+
+ clean:
+--- 6,19 ----
+ #
+ ###############################################################################
+
++ .if ${MACHINE_ARCH} == "alpha"
++ LDADD= -lio
++ .endif
++
+ all: rio
+
+ rio: app.cpp rio.cpp
+! g++ -O1 -o rio app.cpp rio.cpp ${LDADD}
+ chmod +s rio
+
+ clean: