1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/audio/rio/files/patch-aa

36 lines
861 B
Plaintext
Raw Normal View History

*** app.cpp.orig Mon Mar 15 06:53:16 1999
--- app.cpp Sat Sep 18 15:13:44 1999
***************
*** 30,35 ****
--- 30,42 ----
#define SIZE_MAXPATH _MAX_PATH
#define DELETEARRAY delete[]
+ #elif defined(__FreeBSD__)
+ // FreeBSD g++
+ // (anybody know if this stuff applies more generally to other BSDs?)
+ #include <unistd.h>
+ #include <sys/syslimits.h>
+ #define SIZE_MAXPATH PATH_MAX
+
#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" );