Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
35eaa82d
Commit
35eaa82d
authored
May 12, 2013
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make SELINUX compile.
parent
266c1405
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Makefile
Makefile
+1
-1
netstat.c
netstat.c
+4
-3
No files found.
Makefile
View file @
35eaa82d
...
@@ -77,7 +77,7 @@ NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a
...
@@ -77,7 +77,7 @@ NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a
ifeq
($(HAVE_SELINUX),1)
ifeq
($(HAVE_SELINUX),1)
SE_PC_CFLAGS
:=
$(
shell
$(PKG_CONFIG)
--cflags
libselinux
)
SE_PC_CFLAGS
:=
$(
shell
$(PKG_CONFIG)
--cflags
libselinux
)
SE_PC_LIBS
:=
$(
shell
$(PKG_CONFIG)
--libs
libselinux
||
echo
-lselinux
)
SE_PC_LIBS
:=
$(
shell
$(PKG_CONFIG)
--libs
libselinux
||
echo
-lselinux
)
SELIB
=
$(
PC_SELINUX
)
SELIB
=
$(
SE_PC_LIBS
)
CPPFLAGS
+=
$(SE_PC_CFLAGS)
CPPFLAGS
+=
$(SE_PC_CFLAGS)
endif
endif
...
...
netstat.c
View file @
35eaa82d
...
@@ -89,9 +89,6 @@
...
@@ -89,9 +89,6 @@
#include <net/if.h>
#include <net/if.h>
#include <dirent.h>
#include <dirent.h>
#if HAVE_SELINUX
#include <selinux/selinux.h>
#endif
#include "net-support.h"
#include "net-support.h"
#include "pathnames.h"
#include "pathnames.h"
#include "version.h"
#include "version.h"
...
@@ -102,6 +99,10 @@
...
@@ -102,6 +99,10 @@
#include "util.h"
#include "util.h"
#include "proc.h"
#include "proc.h"
#if HAVE_SELINUX
#include <selinux/selinux.h>
#endif
#if HAVE_AFBLUETOOTH
#if HAVE_AFBLUETOOTH
#include <bluetooth/bluetooth.h>
#include <bluetooth/bluetooth.h>
#endif
#endif
...
...
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