diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-11-02 01:12:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-11-02 01:12:30 +0000 |
commit | 2f78757f42923341d019d97dc5daae96189fb9dc (patch) | |
tree | fd871019c72a2b8e7ce91bd98dcf34d61bd36931 /version_info.c | |
parent | 0a0af313759c68187fcb2852c3829441d99dec60 (diff) |
libcap is UN*X-only; libnl is Linux-only.
svn path=/trunk/; revision=53039
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/version_info.c b/version_info.c index 73a833e651..b1e9d8b4ff 100644 --- a/version_info.c +++ b/version_info.c @@ -142,6 +142,8 @@ get_compiled_version_info(GString *str, void (*prepend_info)(GString *), g_string_append(str, "without libz"); #endif /* HAVE_LIBZ */ +#ifndef _WIN32 + /* This is UN*X-only. */ /* LIBCAP */ g_string_append(str, ", "); #ifdef HAVE_LIBCAP @@ -152,7 +154,10 @@ get_compiled_version_info(GString *str, void (*prepend_info)(GString *), #else /* HAVE_LIBCAP */ g_string_append(str, "without POSIX capabilities"); #endif /* HAVE_LIBCAP */ +#endif /* _WIN32 */ +#ifdef __linux__ + /* This is a Linux-specific library. */ /* LIBNL */ g_string_append(str, ", "); #if defined(HAVE_LIBNL1) @@ -161,9 +166,10 @@ get_compiled_version_info(GString *str, void (*prepend_info)(GString *), g_string_append(str, "with libnl 2"); #elif defined(HAVE_LIBNL3) g_string_append(str, "with libnl 3"); -#else +#else /* no libnl */ g_string_append(str, "without libnl"); -#endif +#endif /* libnl version */ +#endif /* __linux__ */ /* Additional application-dependent information */ if (append_info) |