From: Ivo Timmermans Date: Thu, 18 Apr 2002 20:09:05 +0000 (+0000) Subject: Put #ifndef checks for HAVE_RAND_PSEUDO_BYTES in the correct places. X-Git-Tag: release-1.0pre8~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=97d492d9e23f43fe4c8a5ca8c95747088cf32f98;p=oweals%2Ftinc.git Put #ifndef checks for HAVE_RAND_PSEUDO_BYTES in the correct places. --- diff --git a/src/net.c b/src/net.c index 1df4e9e..30c73d9 100644 --- a/src/net.c +++ b/src/net.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net.c,v 1.35.4.169 2002/04/01 21:28:05 guus Exp $ + $Id: net.c,v 1.35.4.170 2002/04/18 20:09:05 zarq Exp $ */ #include "config.h" @@ -68,6 +68,10 @@ #include "system.h" +#ifndef HAVE_RAND_PSEUDO_BYTES +#define RAND_pseudo_bytes RAND_bytes +#endif + int do_purge = 0; int sighup = 0; int sigalrm = 0; diff --git a/src/net_packet.c b/src/net_packet.c index fd2ae06..f0423c1 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_packet.c,v 1.1.2.13 2002/03/27 15:01:37 guus Exp $ + $Id: net_packet.c,v 1.1.2.14 2002/04/18 20:09:05 zarq Exp $ */ #include "config.h" @@ -50,10 +50,6 @@ #include #include -#ifndef HAVE_RAND_PSEUDO_BYTES -#define RAND_pseudo_bytes RAND_bytes -#endif - #include #include diff --git a/src/net_socket.c b/src/net_socket.c index 73e5fb6..5111ec2 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_socket.c,v 1.1.2.11 2002/03/27 14:02:36 guus Exp $ + $Id: net_socket.c,v 1.1.2.12 2002/04/18 20:09:05 zarq Exp $ */ #include "config.h" @@ -66,6 +66,10 @@ #include "system.h" +#ifndef HAVE_RAND_PSEUDO_BYTES +#define RAND_pseudo_bytes RAND_bytes +#endif + int addressfamily = AF_INET; int maxtimeout = 900; int seconds_till_retry = 5;