add handling for other linux distros
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef OS_WINDOWS
|
||||
#ifndef __USE_SELECT__
|
||||
|
||||
typedef struct fdwatch FDWATCH;
|
||||
typedef struct fdwatch * LPFDWATCH;
|
||||
|
||||
@@ -49,7 +49,9 @@ int thecore_init(int fps, HEARTFUNC heartbeat_func)
|
||||
srand(time(0));
|
||||
#else
|
||||
srandom(time(0) + getpid() + getuid());
|
||||
#ifdef OS_FREEBSD
|
||||
srandomdev();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
log_init();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
void signal_setup() {}
|
||||
void signal_timer_disable() {}
|
||||
void signal_timer_enable(int timeout_seconds) {}
|
||||
#elif OS_FREEBSD
|
||||
#else
|
||||
#define RETSIGTYPE void
|
||||
|
||||
RETSIGTYPE reap(int sig)
|
||||
|
||||
Reference in New Issue
Block a user