Ignore:
Timestamp:
2011-10-10 10:53:50 (3 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
master, 4.0, experimental-ims
Children:
81386d
Parents:
9d0ec2a
git-author:
Poul-Henning Kamp <phk@…> (2011-10-10 10:53:50)
git-committer:
Poul-Henning Kamp <phk@…> (2011-10-10 10:53:50)
Message:

Eliminate nested <*.h> includes from include/*

Sort #includes according to rules which are for me to know and you
to guess.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_wrw.c

    rf971cd r8aa1d8  
    3535#include "config.h" 
    3636 
     37#include <sys/types.h> 
     38#ifdef SENDFILE_WORKS 
     39#  if defined(__FreeBSD__) || defined(__DragonFly__) 
     40#    include <sys/socket.h> 
     41#  elif defined(__linux__) 
     42#    include <sys/sendfile.h> 
     43#  elif defined(__sun) 
     44#    include <sys/sendfile.h> 
     45#  else 
     46#     error Unknown sendfile() implementation 
     47#  endif 
     48#endif /* SENDFILE_WORKS */ 
     49#include <sys/uio.h> 
     50 
    3751#include <stdio.h> 
    38 #include <sys/types.h> 
    39 #include <sys/uio.h> 
    40  
    41 #ifdef SENDFILE_WORKS 
    42 #if defined(__FreeBSD__) || defined(__DragonFly__) 
    43    // We're fine 
    44 #elif defined(__linux__) 
    45 #  include <sys/sendfile.h> 
    46 #elif defined(__sun) 
    47 #  include <sys/sendfile.h> 
    48 #else 
    49 #  error Unknown sendfile() implementation 
    50 #endif 
    51 #endif /* SENDFILE_WORKS */ 
    5252 
    5353#include "cache.h" 
Note: See TracChangeset for help on using the changeset viewer.