/* CL_GETTIMEOFDAY */
/* Define if you have the gettimeofday() function. */
#undef HAVE_GETTIMEOFDAY
-/* Define if the declaration of gettimeofday() needs dots. */
-#undef GETTIMEOFDAY_DOTS
-/* Define as the type of `tzp' in gettimeofday() declaration. */
-#undef GETTIMEOFDAY_TZP_T
#endif /* _CL_BASE_CONFIG_H */
#include <unistd.h> // declares getpid()
#if defined(HAVE_GETTIMEOFDAY)
-
#include <sys/time.h>
-#ifdef GETTIMEOFDAY_DOTS
- extern "C" int gettimeofday (struct timeval * tp, ...);
-#else
- extern "C" int gettimeofday (struct timeval * tp, GETTIMEOFDAY_TZP_T tzp);
-#endif
namespace cln {
inline uint32 get_seed (void)
{
var struct timeval tv;
- gettimeofday(&tv,0);
+ gettimeofday(&tv,NULL);
return highlow32(tv.tv_sec,tv.tv_usec); // 16+16 zufällige Bits
}
} // namespace cln
/* CL_GETTIMEOFDAY */
/* Define if you have the gettimeofday() function. */
#undef HAVE_GETTIMEOFDAY
-/* Define if the declaration of gettimeofday() needs dots. */
-#undef GETTIMEOFDAY_DOTS
-/* Define as the type of `tzp' in gettimeofday() declaration. */
-#undef GETTIMEOFDAY_TZP_T
/* CL_RUSAGE */
/* Define if you have <sys/resource.h>. */
#if defined(HAVE_GETTIMEOFDAY)
#include <sys/time.h>
- #ifdef GETTIMEOFDAY_DOTS
- extern "C" int gettimeofday (struct timeval * tp, ...);
- #else
- extern "C" int gettimeofday (struct timeval * tp, GETTIMEOFDAY_TZP_T tzp);
- #endif
#elif defined(_WIN32) && !defined(__CYGWIN__)
/* <windows.h> included above. */
#else