Changeset 1728


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

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r1727 r1728  
    2828AC_SUBST(DLL_LDFLAGS)
    2929
    30 AC_CHECK_HEADERS(windows.h winsock2.h io.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h)
     30AC_CHECK_HEADERS(windows.h winsock2.h io.h unistd.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h)
    3131
    3232AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)
  • 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>
  • zzuf/trunk/test/zzcat.c

    r1725 r1728  
    2020#include <sys/stat.h>
    2121#include <fcntl.h>
    22 #include <unistd.h>
     22#if defined HAVE_UNISTD_H
     23#   include <unistd.h>
     24#endif
    2325#include <stdlib.h>
    2426#include <stdint.h>
Note: See TracChangeset for help on using the changeset viewer.