1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix build on amd64.

PR:		ports/130197
Submitted by:	Matt Tosto <datahead4 at gmail.com> (maintainer)
Approved by:	miwi (mentor)
This commit is contained in:
Max Brazhnikov 2009-01-16 21:34:44 +00:00
parent 8d83f70019
commit a021dc52d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226289
3 changed files with 27 additions and 11 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= libmsn
DISTVERSION= 4.0-beta2
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= SF

View File

@ -0,0 +1,26 @@
--- ./msn/util.cpp.orig 2008-11-16 16:27:05.000000000 +0300
+++ ./msn/util.cpp 2009-01-16 20:32:29.000000000 +0300
@@ -29,7 +29,7 @@
#include <fstream>
#include <openssl/rand.h>
#include <cstring>
-#include <sys/timeb.h>
+#include <sys/time.h>
#include "md5.h"
#ifdef _WIN32
@@ -352,10 +352,11 @@
std::string new_branch()
{
- struct timeb t;
- ftime(&t);
+ struct timeval t;
+ struct timezone tz;
+ gettimeofday(&t, &tz);
char branch[100];
- srand(t.millitm);
+ srand(t.tv_usec);
unsigned int a=random();
srand(a);
unsigned short b=random();

View File

@ -1,11 +0,0 @@
--- ./msntest/CMakeLists.txt.orig 2008-11-13 03:41:03.000000000 +0300
+++ ./msntest/CMakeLists.txt 2008-12-28 22:10:09.000000000 +0300
@@ -3,7 +3,7 @@
)
add_executable (msntest ${msntest_SRCS} )
-target_link_libraries(msntest crypto msn ssl)
+target_link_libraries(msntest crypto msn ssl compat)
########### install files ###############
install(TARGETS msntest DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)