Changeset 1728 for zzuf/trunk/src


Ignore:
Timestamp:
Feb 1, 2007, 5:08:33 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Check for <unistd.h>, too. MSVC doesn't have it.
Location:
zzuf/trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/debug.c

    r1718 r1728  
    2828#endif
    2929#include <stdio.h>
    30 #include <unistd.h>
     30#if defined HAVE_UNISTD_H
     31#   include <unistd.h>
     32#endif
    3133#include <errno.h>
    3234#include <stdarg.h>
  • zzuf/trunk/src/lib-fd.c

    r1718 r1728  
    4646#   include <sys/uio.h>
    4747#endif
    48 #include <unistd.h>
     48#if defined HAVE_UNISTD_H
     49#   include <unistd.h>
     50#endif
    4951#include <fcntl.h>
    5052#include <stdarg.h>
  • zzuf/trunk/src/lib-mem.c

    r1716 r1728  
    4141#   include <malloc.h>
    4242#endif
    43 #include <unistd.h>
     43#if defined HAVE_UNISTD_H
     44#   include <unistd.h>
     45#endif
    4446#if defined HAVE_SYS_MMAN_H
    4547#   include <sys/mman.h>
  • zzuf/trunk/src/lib-stream.c

    r1724 r1728  
    3030#include <stdio.h>
    3131#include <sys/types.h>
    32 #if defined HAVE___SREFILL
     32#if defined HAVE___SREFILL && defined HAVE_UNISTD_H
    3333#   include <unistd.h> /* Needed for __srefill’s lseek() call */
    3434#endif
  • zzuf/trunk/src/libzzuf.c

    r1718 r1728  
    3030#include <stdio.h>
    3131#include <sys/types.h>
    32 #include <unistd.h>
     32#if defined HAVE_UNISTD_H
     33#   include <unistd.h>
     34#endif
    3335#include <stdlib.h>
    3436#include <string.h>
  • zzuf/trunk/src/zzuf.c

    r1727 r1728  
    2929#include <stdio.h>
    3030#include <stdlib.h>
    31 #include <unistd.h>
     31#if defined HAVE_UNISTD_H
     32#   include <unistd.h>
     33#endif
    3234#if defined HAVE_REGEX_H
    3335#   include <regex.h>
Note: See TracChangeset for help on using the changeset viewer.