Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
1d2aa6e9
Commit
1d2aa6e9
authored
Jun 09, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linux compatibility
parent
f6810a13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
create_libcppa_Makefile.sh
create_libcppa_Makefile.sh
+5
-2
src/process_information.cpp
src/process_information.cpp
+2
-2
No files found.
create_libcppa_Makefile.sh
View file @
1d2aa6e9
...
...
@@ -39,14 +39,17 @@ echo
echo
"%.o : %.cpp
\$
(HEADERS)"
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(CXXFLAGS)
\$
(INCLUDE_FLAGS) -fPIC -c
\$
< -o
\$
@"
echo
echo
"
\$
(LIB_NAME)
:
\$
(OBJECTS)
\$
(HEADERS)"
echo
"
\$
libcppa
:
\$
(OBJECTS)
\$
(HEADERS)"
if
test
"
$(
uname
)
"
"="
"Darwin"
;
then
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(LIBS) -dynamiclib -o libcppa.dylib
\$
(OBJECTS)"
else
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(LIBS) -shared -Wl,-soname,libcppa.so.0 -o libcppa.so.0.0.0
\$
(OBJECTS)"
printf
"%b
\n
"
"
\t
ln -s libcppa.so.0.0.0 libcppa.so.0.0"
printf
"%b
\n
"
"
\t
ln -s libcppa.so.0.0.0 libcppa.so.0"
printf
"%b
\n
"
"
\t
ln -s libcppa.so.0.0.0 libcppa.so"
fi
echo
echo
"all :
\$
(LIB_NAME)
\$
(OBJECTS)"
echo
"all :
libcppa
\$
(OBJECTS)"
echo
echo
"clean:"
printf
"%b
\n
"
"
\t
rm -f
\$
(LIB_NAME)
\$
(OBJECTS)"
...
...
src/process_information.cpp
View file @
1d2aa6e9
...
...
@@ -30,9 +30,9 @@ const char* s_get_mac =
"/usr/bin/grep -Fw MAC | "
"/usr/bin/grep -o '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}' | "
"/usr/bin/head -n1"
;
#elif
CPPA_LINUX
#elif
defined(CPPA_LINUX)
const
char
*
s_get_uuid
=
"/bin/egrep -o 'UUID=(([0-9a-fA-F-]+)(-[0-9a-fA-F-]+){3})\
s+/
\s+' "
"/bin/egrep -o 'UUID=(([0-9a-fA-F-]+)(-[0-9a-fA-F-]+){3})
\
\
s+/
\
\
s+' "
"/etc/fstab | "
"/bin/egrep -o '([0-9a-fA-F-]+)(-[0-9a-fA-F-]+){3}'"
;
const
char
*
s_get_mac
=
...
...
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