Skip to content
Snippets Groups Projects
Unverified Commit a788a0d9 authored by CNLohr's avatar CNLohr Committed by GitHub
Browse files

Merge pull request #108 from crosstyan/macOS

fix macOS compilation
parents 4954be51 b80ec173
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ else
ifeq ($(OS_NAME),darwin)
LDFLAGS:=-lpthread -lusb-1.0 -framework CoreFoundation -framework IOKit
CFLAGS:=-O0 -Wall -Wno-asm-operand-widths -Wno-deprecated-declarations -Wno-deprecated-non-prototype -D__MACOSX__
INCLUDES:=-I /opt/homebrew/Cellar/libusb/1.0.26/include/libusb-1.0
LIBINCLUDES:=-L /opt/homebrew/Cellar/libusb/1.0.26/lib
INCLUDES:=$(shell pkg-config --cflags-only-I libusb-1.0)
LIBINCLUDES:=$(shell pkg-config --libs-only-L libusb-1.0)
INCS:=$(INCLUDES) $(LIBINCLUDES)
endif
endif
......
......@@ -72,12 +72,15 @@ int WSAAPI WSAPoll(struct pollfd * fdArray, ULONG fds, INT timeout
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/in.h>
#include <unistd.h>
#include <poll.h>
#endif
#endif
#ifdef __linux__
#include <linux/in.h>
#endif
char gdbbuffer[65536];
uint8_t gdbchecksum = 0;
int gdbbufferplace = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment