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>.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.