linux also needs stdlib.h for random()

This commit is contained in:
Ryo Nakamura
2023-03-15 23:26:11 +09:00
parent 4ec877a290
commit 3902fb584a

View File

@@ -1,5 +1,4 @@
#ifdef __APPLE__
#include <stdlib.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#elif linux
@@ -9,6 +8,8 @@
#error unsupported platform
#endif
#include <stdlib.h>
#include <util.h>
#include <platform.h>
#include <message.h>