From b1950503fdae1697928101affc99d31c7220fbdb Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 20 Sep 1999 02:19:51 +0000 Subject: Use time_t instead of long when call time functions. Also add '-lio' on FreeBSD/Alpha. --- audio/rio/files/patch-aa | 27 ++++++++++++++++++++++----- audio/rio/files/patch-ac | 29 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 audio/rio/files/patch-ac (limited to 'audio/rio/files') 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 +*** 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 +*************** +*** 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: -- cgit