Changeset 2530 for zzuf/trunk/src


Ignore:
Timestamp:
Jul 15, 2008, 11:34:14 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Add a few _INCLUDE_POSIX_SOURCE defines here and there so that we build out of the box with HP-UX's c99 compiler.
Location:
zzuf/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-fd.c

    r2528 r2530  
    2828/* Use this to get proper prototypes on HP-UX systems */
    2929#define _XOPEN_SOURCE_EXTENDED
     30#define _INCLUDE_POSIX_SOURCE
    3031
    3132#if defined HAVE_STDINT_H
  • zzuf/trunk/src/lib-mem.c

    r2523 r2530  
    2525/* Use this to get mmap64() on glibc systems */
    2626#define _LARGEFILE64_SOURCE
     27/* Use this to get ENOMEM on HP-UX */
     28#define _INCLUDE_POSIX_SOURCE
    2729/* Use this to get posix_memalign */
    2830#if defined HAVE_POSIX_MEMALIGN
  • zzuf/trunk/src/lib-signal.c

    r1699 r2530  
    1919#include "config.h"
    2020
    21 /* needed for sighandler_t */
     21/* Needed for sighandler_t on glibc systems */
    2222#define _GNU_SOURCE
     23/* Needed for struct sigaction on HP-UX */
     24#define _INCLUDE_POSIX_SOURCE
    2325
    2426#if defined HAVE_STDINT_H
  • zzuf/trunk/src/zzuf.c

    r2525 r2530  
    1919#include "config.h"
    2020
     21/* Needed for STDERR_FILENO on HP-UX */
     22#define _INCLUDE_POSIX_SOURCE
     23
    2124#if defined HAVE_STDINT_H
    2225#   include <stdint.h>
     
    5053#include <errno.h>
    5154#include <signal.h>
     55#if defined HAVE_SYS_TIME_H
     56#   include <sys/time.h>
     57#endif
    5258#if defined HAVE_SYS_WAIT_H
    5359#   include <sys/wait.h>
Note: See TracChangeset for help on using the changeset viewer.