"Fossies" - the Fresh Open Source Software Archive

Member "leafnode-1.12.0/system.h" (10 Jun 2013, 605 Bytes) of package /linux/misc/leafnode-1.12.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "system.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef SYSTEM_H
    2 #define SYSTEM_H
    3 
    4 #include "config.h"
    5 
    6 #if TIME_WITH_SYS_TIME
    7 # include <sys/time.h>
    8 # include <time.h>
    9 #else
   10 # if HAVE_SYS_TIME_H
   11 #  include <sys/time.h>
   12 # else
   13 #  include <time.h>
   14 # endif
   15 #endif
   16 
   17 #if HAVE_DIRENT_H
   18 # include <dirent.h>
   19 # define NAMLEN(dirent) strlen((dirent)->d_name)
   20 #else
   21 # define dirent direct
   22 # define NAMLEN(dirent) (dirent)->d_namlen
   23 # if HAVE_SYS_NDIR_H
   24 #  include <sys/ndir.h>
   25 # endif
   26 # if HAVE_SYS_DIR_H
   27 #  include <sys/dir.h>
   28 # endif
   29 # if HAVE_NDIR_H
   30 #  include <ndir.h>
   31 # endif
   32 #endif
   33 
   34 #ifdef HAVE_STRINGS_H
   35 #include <strings.h>
   36 #endif
   37 
   38 #endif /* SYSTEM_H */