mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Fix build on macOS
Corresponding compilation errors: ir_private.h:11:10: fatal error: 'malloc.h' file not found ir_gdb.c:162:17: error: implicit declaration of function 'offsetof' is invalid in C99 [-Werror,-Wimplicit-function-declaration] .shofs = offsetof(ir_gdbjit_obj, sect),
This commit is contained in:
parent
93172a487d
commit
af75775bac
1
ir_gdb.c
1
ir_gdb.c
@ -7,6 +7,7 @@
|
||||
* Based on Mike Pall's implementation of GDB interface for LuaJIT.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#ifndef IR_PRIVATE_H
|
||||
#define IR_PRIVATE_H
|
||||
#include <string.h>
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef IR_DEBUG
|
||||
# include <assert.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user