mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #6274
begasus (2): feat(haiku): Don't use fstack-protector on Haiku feat(haiku): Haiku doesn't use sys/errno.h
This commit is contained in:
commit
5bb89f3e0b
|
@ -104,7 +104,7 @@ if (COMPILER_SUPPORTS_WDATE_TIME)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdate-time")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdate-time")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT WIN32)
|
if (NOT WIN32 AND NOT HAIKU)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstack-protector")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstack-protector")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <qrencode.h>
|
#include <qrencode.h>
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#if defined(Q_OS_WIN32) || defined(Q_OS_HAIKU)
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user