Fix nesting of #ifdefs in netgroupcache.c
authorUlrich Drepper <drepper@gmail.com>
Mon, 17 Oct 2011 14:30:03 +0000 (10:30 -0400)
committerUlrich Drepper <drepper@gmail.com>
Mon, 17 Oct 2011 14:30:03 +0000 (10:30 -0400)
ChangeLog
nscd/netgroupcache.c

index 32a6a5d..755ca1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-17  Ulrich Drepper  <drepper@gmail.com>
+
+       * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
+
 2011-10-17  Andreas Schwab  <schwab@redhat.com>
 
        * misc/sys/cdefs.h: Fix last change.
index a406ade..02cda13 100644 (file)
@@ -406,10 +406,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
 # endif
        }
       else
+#endif
        {
-# ifndef __ASSUME_SENDFILE
+#if defined HAVE_SENDFILE && !defined __ASSUME_SENDFILE
        use_write:
-# endif
 #endif
          writeall (fd, &dataset->resp, dataset->head.recsize);
        }