Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
cff940a7
Commit
cff940a7
authored
Mar 02, 2015
by
Eric
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #78 from pdavydov108/master
Fix #77 build on freebsd 10
parents
5e77de62
8e3e78fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CMakeLists.txt
CMakeLists.txt
+4
-0
sysinfo.cc
src/sysinfo.cc
+1
-1
No files found.
CMakeLists.txt
View file @
cff940a7
...
@@ -56,6 +56,10 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
...
@@ -56,6 +56,10 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
add_definitions
(
-DOS_WINDOWS
)
add_definitions
(
-DOS_WINDOWS
)
endif
()
endif
()
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"FreeBSD"
)
add_definitions
(
-DOS_FREEBSD
)
endif
()
# Set CPU
# Set CPU
if
(
${
CMAKE_SYSTEM_PROCESSOR
}
MATCHES
"x86"
)
if
(
${
CMAKE_SYSTEM_PROCESSOR
}
MATCHES
"x86"
)
add_definitions
(
-DARCH_X86
)
add_definitions
(
-DARCH_X86
)
...
...
src/sysinfo.cc
View file @
cff940a7
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <sys/resource.h>
#include <sys/resource.h>
#include <sys/types.h> // this header must be included before 'sys/sysctl.h' to avoid compilation error on FreeBSD
#include <sys/sysctl.h>
#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <unistd.h>
#include <iostream>
#include <iostream>
...
...
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