aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-04-07 13:25:21 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-04-07 13:25:21 +0000
commita2b32641add15dd8645335649364cfa1a1962f53 (patch)
tree8768022e412b8a0f3b95944bd0ed122f3dd17853 /Makefile
parent3b529da46c6ede499ff75a34819757ed6cc36b44 (diff)
reinstate O_NONBLOCK kludge on MinGW
svn path=/trunk/externals/moonlib/; revision=13388
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0075227..6ebecb4 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,8 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
EXTENSION = dll
OS = windows
OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -march=i686 -mtune=pentium4
- CFLAGS += -mms-bitfields
+ WINDOWS_HACKS = -D'O_NONBLOCK=1'
+ CFLAGS += -mms-bitfields $(WINDOWS_HACKS)
LDFLAGS += -s -shared -Wl,--enable-auto-import
LIBS += -L$(PD_PATH)/src -L$(PD_PATH)/bin -L$(PD_PATH)/obj -lpd -lwsock32 -lkernel32 -luser32 -lgdi32
STRIP = strip --strip-unneeded -R .note -R .comment