Changeset 2542 for zzuf/trunk


Ignore:
Timestamp:
Jul 16, 2008, 7:23:29 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Fix a few HP-UX warnings caused by missing headers.
Location:
zzuf/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r2533 r2542  
    3636AC_SUBST(DLL_LDFLAGS)
    3737
    38 AC_CHECK_HEADERS(windows.h winsock2.h io.h process.h unistd.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/cdefs.h sys/socket.h netinet/in.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h endian.h)
     38AC_CHECK_HEADERS(windows.h winsock2.h io.h process.h unistd.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/cdefs.h sys/socket.h netinet/in.h arpa/inet.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h endian.h)
    3939
    4040AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)
  • zzuf/trunk/src/lib-fd.c

    r2530 r2542  
    4949#if defined HAVE_NETINET_IN_H
    5050#   include <netinet/in.h>
     51#endif
     52#if defined HAVE_ARPA_INET_H
     53#   include <arpa/inet.h>
    5154#endif
    5255#if defined HAVE_SYS_UIO_H
  • zzuf/trunk/src/lib-stream.c

    r2533 r2542  
    1919#include "config.h"
    2020
    21 #define _GNU_SOURCE /* for getline() and getdelim() */
     21/* Needed for getline() and getdelim() */
     22#define _GNU_SOURCE
     23
     24#if defined HAVE___SREFILL || defined HAVE___FILBUF
     25#   define HAVE_REFILL_STDIO
     26#endif
    2227
    2328#if defined HAVE_STDINT_H
     
    3035#include <stdio.h>
    3136#include <sys/types.h>
    32 #if defined HAVE___SREFILL && defined HAVE_UNISTD_H
     37#if defined HAVE_REFILL_STDIO && defined HAVE_UNISTD_H
    3338#   include <unistd.h> /* Needed for __srefill’s lseek() call */
    3439#endif
     
    3944#include "fuzz.h"
    4045#include "fd.h"
    41 
    42 #if defined HAVE___SREFILL || defined HAVE___FILBUF
    43 #   define HAVE_REFILL_STDIO
    44 #endif
    4546
    4647#if defined HAVE___SREFILL
Note: See TracChangeset for help on using the changeset viewer.