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:
Guy Harris 2014-07-03 08:22:09 -07:00
parent f3c62edc77
commit 66b02c75ed
4 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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>

View File

@ -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"

View File

@ -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.