--- a/source/Irrlicht/Makefile
+++ b/source/Irrlicht/Makefile
@@ -62,7 +62,7 @@ LINKOBJ = $(IRRMESHOBJ) $(IRROBJ) $(IRRPARTICLEOBJ) $(IRRANIMOBJ) \
- ###############
- #Compiler flags
- CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
--CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1
-+override CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1
- CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing
- ifndef NDEBUG
- CXXFLAGS += -g -D_DEBUG
+ ###############\r
+ #Compiler flags\r
+ CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng\r
+-CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1\r
++override CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1\r
+ CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing\r
+ ifndef NDEBUG\r
+ CXXFLAGS += -g -D_DEBUG\r
@@ -74,8 +74,8 @@ CXXFLAGS += -pg
- endif
- CFLAGS := -O3 -fexpensive-optimizations -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES
-
--sharedlib sharedlib_osx: CXXFLAGS += -fPIC
--sharedlib sharedlib_osx: CFLAGS += -fPIC
-+sharedlib sharedlib_osx: override CXXFLAGS += -fPIC
-+sharedlib sharedlib_osx: override CFLAGS += -fPIC
-
- #multilib handling
- ifeq ($(HOSTTYPE), x86_64)
+ endif\r
+ CFLAGS := -O3 -fexpensive-optimizations -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES\r
+ \r
+-sharedlib sharedlib_osx: CXXFLAGS += -fPIC\r
+-sharedlib sharedlib_osx: CFLAGS += -fPIC\r
++sharedlib sharedlib_osx: override CXXFLAGS += -fPIC\r
++sharedlib sharedlib_osx: override CFLAGS += -fPIC\r
+ \r
+ #multilib handling\r
+ ifeq ($(HOSTTYPE), x86_64)\r
--
2.9.3
--- a/source/Irrlicht/COSOperator.cpp
+++ b/source/Irrlicht/COSOperator.cpp
@@ -13,7 +13,6 @@
- #include <unistd.h>
- #ifndef _IRR_SOLARIS_PLATFORM_
- #include <sys/types.h>
--#include <sys/sysctl.h>
- #endif
- #endif
-
+ #include <unistd.h>\r
+ #ifndef _IRR_SOLARIS_PLATFORM_\r
+ #include <sys/types.h>\r
+-#include <sys/sysctl.h>\r
+ #endif\r
+ #endif\r
+ \r
--
2.9.3