forked from osmocom/wireshark
Include <sys/capaibility.h> to get _LINUX_CAPABILITY_VERSION defined.
It's no longer used in version_info.c, but is used in the main source files of TShark and Wireshark (it's already included in dumpcap). Change-Id: I2169a2bbed678baf26fc8711d7c13d95cce3ee2a Reviewed-on: https://code.wireshark.org/review/2819 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
f3c62edc77
commit
66b02c75ed
4
tshark.c
4
tshark.c
|
@ -55,6 +55,10 @@
|
|||
#include <zlib.h> /* to get the libz version number */
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBCAP
|
||||
# include <sys/capability.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETOPT
|
||||
#include "wsutil/wsgetopt.h"
|
||||
#endif
|
||||
|
|
|
@ -49,6 +49,10 @@
|
|||
#include <zlib.h> /* to get the libz version number */
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBCAP
|
||||
# include <sys/capability.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32 /* Needed for console I/O */
|
||||
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -113,6 +113,10 @@
|
|||
# include <capchild/capture_sync.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBCAP
|
||||
# include <sys/capability.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include "capture-wpcap.h"
|
||||
# include "capture_wpcap_packet.h"
|
||||
|
|
|
@ -39,10 +39,6 @@
|
|||
#include <wsutil/cpu_info.h>
|
||||
#include <wsutil/mem_info.h>
|
||||
|
||||
#ifdef HAVE_LIBCAP
|
||||
# include <sys/capability.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If the string doesn't end with a newline, append one.
|
||||
* Then word-wrap it to 80 columns.
|
||||
|
|
Loading…
Reference in New Issue