diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-17 22:40:23 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-17 22:40:23 +0000 |
commit | 05facefee14cd649e7cbd35ea8d3b89cfedbe668 (patch) | |
tree | 6e7c9b6a53cd6be2eb9ba31903811325b98f2b96 /net/vyqchat/files | |
parent | e13b8a362b0294cd784934ead5e4451a29fab95f (diff) |
Notes
Diffstat (limited to 'net/vyqchat/files')
-rw-r--r-- | net/vyqchat/files/patch-src-settings.cpp | 12 | ||||
-rw-r--r-- | net/vyqchat/files/patch-src-uuid.cpp | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/net/vyqchat/files/patch-src-settings.cpp b/net/vyqchat/files/patch-src-settings.cpp new file mode 100644 index 000000000000..7d17134e1258 --- /dev/null +++ b/net/vyqchat/files/patch-src-settings.cpp @@ -0,0 +1,12 @@ +--- src/settings.cpp Mon Jul 18 21:54:08 2005 ++++ src/settings.cpp Sun Aug 7 15:59:58 2005 +@@ -14,8 +14,8 @@ + #include "settings.h" + #include <unistd.h> + #include <sys/ioctl.h> +-#include <net/if.h> + #include <sys/socket.h> ++#include <net/if.h> + #include <sys/types.h> + #include <arpa/inet.h> + #include <stdlib.h> diff --git a/net/vyqchat/files/patch-src-uuid.cpp b/net/vyqchat/files/patch-src-uuid.cpp new file mode 100644 index 000000000000..10872796bcc0 --- /dev/null +++ b/net/vyqchat/files/patch-src-uuid.cpp @@ -0,0 +1,22 @@ +--- src/uuid.cpp.orig Mon Jul 18 20:54:08 2005 ++++ src/uuid.cpp Sat Sep 17 23:03:48 2005 +@@ -12,7 +12,7 @@ + + #include "uuid.h" + #include <qstring.h> +-#include <openssl/rand.h> ++#include <fcntl.h> + + UUID::UUID(): QByteArray(UUID_LEN)/*{{{*/ + { +@@ -35,7 +35,9 @@ + + void UUID::generate()/*{{{*/ + { +- RAND_bytes((unsigned char *)data(), UUID_LEN); ++ int rfd = open("/dev/random", O_RDONLY); ++ read(rfd, (void *)data(), UUID_LEN); ++ close(rfd); + }/*}}}*/ + + void UUID::set(const unsigned char *data)/*{{{*/ |