diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-07-03 08:22:09 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-07-03 15:22:45 +0000 |
commit | 66b02c75eda0c5c7430ff62f641390ad415e826c (patch) | |
tree | 9ad5a3baff0ff278a7be66155118615f6c529f2c /ui | |
parent | f3c62edc7738f30f5ccf3861e4839539fd558367 (diff) | |
download | wireshark-66b02c75eda0c5c7430ff62f641390ad415e826c.tar.gz wireshark-66b02c75eda0c5c7430ff62f641390ad415e826c.tar.bz2 wireshark-66b02c75eda0c5c7430ff62f641390ad415e826c.zip |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/main.c | 4 | ||||
-rw-r--r-- | ui/qt/main.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c index d809cc19c7..ad723142f3 100644 --- a/ui/gtk/main.c +++ b/ui/gtk/main.c @@ -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> diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp index f509f79f8a..479d5576b0 100644 --- a/ui/qt/main.cpp +++ b/ui/qt/main.cpp @@ -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" |