Changeset 2523


Ignore:
Timestamp:
Jul 15, 2008, 10:15:47 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Fix a compilation issue on FreeBSD by defining _BSD_SOURCE and including <sys/cdefs.h>.
Location:
zzuf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r2366 r2523  
    2727AC_SUBST(DLL_LDFLAGS)
    2828
    29 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/socket.h netinet/in.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h endian.h)
     29AC_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)
    3030
    3131AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)
  • zzuf/trunk/src/lib-mem.c

    r2355 r2523  
    2121/* Need this for RTLD_NEXT */
    2222#define _GNU_SOURCE
     23/* Need this for MAP_ANON and valloc() on FreeBSD (together with cdefs.h) */
     24#define _BSD_SOURCE
    2325/* Use this to get mmap64() on glibc systems */
    2426#define _LARGEFILE64_SOURCE
     
    3840#include <signal.h>
    3941
     42#if defined HAVE_SYS_CDEFS_H
     43#   include <sys/cdefs.h>
     44#endif
    4045#if defined HAVE_MALLOC_H
    4146#   include <malloc.h>
Note: See TracChangeset for help on using the changeset viewer.