Permalink
Browse files

list all network handlers in lighttpd -V (fixes #2376)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2824 152afb58-edef-0310-8abb-c4023f1b3aa9
  • Loading branch information...
1 parent 79bcfab commit 6f0752da380c8ae7c7dab12a902b4635d3676d0a @stbuehler stbuehler committed Dec 27, 2011
Showing with 20 additions and 8 deletions.
  1. +20 −8 src/server.c
View
@@ -409,19 +409,31 @@ static void show_features (void) {
"\t- libev (generic)\n"
#endif
"\nNetwork handler:\n\n"
-#if defined(USE_LINUX_SENDFILE) || defined(USE_FREEBSD_SENDFILE) || defined(USE_SOLARIS_SENDFILEV) || defined(USE_AIX_SENDFILE)
- "\t+ sendfile\n"
+#if defined USE_LINUX_SENDFILE
+ "\t+ linux-sendfile\n"
#else
- #ifdef USE_WRITEV
+ "\t- linux-sendfile\n"
+#endif
+#if defined USE_FREEBSD_SENDFILE
+ "\t+ freebsd-sendfile\n"
+#else
+ "\t- freebsd-sendfile\n"
+#endif
+#if defined USE_SOLARIS_SENDFILEV
+ "\t+ solaris-sendfilev\n"
+#else
+ "\t- solaris-sendfilev\n"
+#endif
+#if defined USE_WRITEV
"\t+ writev\n"
- #else
+#else
+ "\t- writev\n"
+#endif
"\t+ write\n"
- #endif
- #ifdef USE_MMAP
+#ifdef USE_MMAP
"\t+ mmap support\n"
- #else
+#else
"\t- mmap support\n"
- #endif
#endif
"\nFeatures:\n\n"
#ifdef HAVE_IPV6

0 comments on commit 6f0752d

Please sign in to comment.