[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wed, 25 May 2005 17:55:11 -0400
I'm currently developping a C++ software on FreeBSD. Since that software uses
stdlib.h's srandomdev() function, I added :
in my configure.in file to detect it. The problem is that on other oses such
as Debian, there is no srandomdev() function in stdlib.h so I must use
srandom() which is close enough.
I do this by changing my software's code to the following:
I'm hoping there is a better way to do this by using AC_REPLACE_FUNCS, but I
can't seem to have it working. I'm trying to replace srandomdev() by
srandom() from the same stdlib.h but it doesn't seem to work.
Could someone be kind enough to post an example?
FreeBSD 6.0-CURRENT #2: Sun May 22 11:29:47 EDT 2005
PGP? : http://188.8.131.52:8081/security/nb_root.asc
Description: PGP signature
- Using AC_REPLACE_FUNCS,
Nicolas Blais <=