History

Fix compilation when using -DPTHREAD

We should have this defined for making use of futex locks instead of spin locks. When compiling with -DPTHREAD however, gcc gets confused at our declaration of arrow in devmouse.c, naming the members gives gcc enough of a hint that things work right.

Jacob Moody committed 5 years ago

Commit c5cba491 parent 4c9f5692 files · +5 −5Browse files

Showing the changes to Make.linux (1 of 2 files). Show all

Unified · Split

Make.linux+1−1
@@ -5,7 +5,7 @@ AR=ar · 4 unmodified lines
55 AS=as
66 RANLIB=ranlib
77 CC=gcc
8−CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -D_THREAD_SAFE $(PTHREAD) -O2
8+CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -D_THREAD_SAFE -DPTHREAD $(PTHREAD) -O2
99 O=o
1010 OS=posix
1111 GUI=wl

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t