Add a POSIX capabilities blurb to get_compiled_version_info().

svn path=/trunk/; revision=24561
This commit is contained in:
Gerald Combs 2008-03-04 23:57:55 +00:00
parent d9eba4345b
commit 626cd5efaa
1 changed files with 16 additions and 1 deletions

View File

@ -79,6 +79,10 @@
#include <CoreServices/CoreServices.h>
#endif
#ifdef HAVE_LIBCAP
# include <sys/capability.h>
#endif
#ifdef SVNVERSION
const char *wireshark_svnversion = " (" SVNVERSION ")";
#else
@ -154,6 +158,17 @@ get_compiled_version_info(GString *str, void (*additional_info)(GString *))
g_string_append(str, "without libz");
#endif /* HAVE_LIBZ */
/* LIBCAP */
g_string_append(str, ",\n");
#ifdef HAVE_LIBCAP
g_string_append(str, "with POSIX capabilities");
#ifdef _LINUX_CAPABILITY_VERSION
g_string_append(str, " (Linux)");
#endif /* _LINUX_CAPABILITY_VERSION */
#else /* HAVE_LIBCAP */
g_string_append(str, "without POSIX capabilities");
#endif /* HAVE_LIBCAP */
/* Additional application-dependent information */
if (additional_info)
(*additional_info)(str);
@ -424,7 +439,7 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *))
Gestalt(gestaltSystemVersionMajor, &macosx_major_ver);
Gestalt(gestaltSystemVersionMinor, &macosx_minor_ver);
Gestalt(gestaltSystemVersionBugFix, &macosx_bugfix_ver);
g_string_sprintfa(str, " (MacOS %ld.%ld.%ld)",
macosx_major_ver,
macosx_minor_ver,