mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
a5f86a1b94
on FreeBSD/Alpha.
36 lines
861 B
Plaintext
36 lines
861 B
Plaintext
*** 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" );
|