Fix errors when compiling on newer compilers (prototype definitions fix)

This commit is contained in:
junepark678 authored and Nick Chan committed 2023-02-24 23:28:35 +08:00
1 parent df0c0f346d
commit fae5eaf07e
7 files changed
+19 -20

No files matched your search

+1 -2
View File
@@ -16,7 +16,6 @@
#include <signal.h>
#include <pthread.h>
#include <inttypes.h>
#include <getopt.h>
#include <errno.h>
#include <spawn.h>
#include <sys/mman.h>
@@ -56,7 +55,7 @@ void thr_cleanup(void* ptr) {
*(int*)ptr = 0;
}
int build_checks() {
int build_checks(void) {
#if defined(__APPLE__)
#ifndef NO_CHECKRAIN
struct mach_header_64* c1_header = (struct mach_header_64*)&checkra1n[0];