Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4a81492b
Commit
4a81492b
authored
Aug 28, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9474 from miqlas:haiku_support
parents
d861c033
6258ff36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
system.cpp
modules/core/src/system.cpp
+2
-2
No files found.
CMakeLists.txt
View file @
4a81492b
...
...
@@ -544,7 +544,7 @@ if(UNIX)
CHECK_INCLUDE_FILE
(
pthread.h HAVE_PTHREAD
)
if
(
ANDROID
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
dl m log
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"FreeBSD|NetBSD|DragonFly|OpenBSD"
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"FreeBSD|NetBSD|DragonFly|OpenBSD
|Haiku
"
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
m pthread
)
elseif
(
EMSCRIPTEN
)
# no need to link to system libs with emscripten
...
...
modules/core/src/system.cpp
View file @
4a81492b
...
...
@@ -66,7 +66,7 @@ Mutex* __initialization_mutex_initializer = &getInitializationMutex();
# endif
#endif
#if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__
#if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__
|| defined __HAIKU__
# include <unistd.h>
# include <fcntl.h>
# include <elf.h>
...
...
@@ -202,7 +202,7 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix)
#include "omp.h"
#endif
#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __FreeBSD__
#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __FreeBSD__
|| defined __HAIKU__
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment